Table of Contents

Class CodeFirstSceneFactory

Namespace
LibreRally
Assembly
LibreRally.dll

Factory for creating the main game scene and its associated setup using code-first approach.

public static class CodeFirstSceneFactory
Inheritance
CodeFirstSceneFactory
Inherited Members

Methods

CreateMainScene()

Creates the main scene with default settings.

public static Scene CreateMainScene()

Returns

Scene

A new Scene instance.

CreateMainScene(Game?)

Creates the main scene with an optional game instance for asset loading.

public static Scene CreateMainScene(Game? game)

Parameters

game Game

The game instance to use for loading assets.

Returns

Scene

A new Scene instance.

CreateMainSceneSetup()

Creates the main scene setup with default settings.

public static CodeFirstSceneSetup CreateMainSceneSetup()

Returns

CodeFirstSceneSetup

A CodeFirstSceneSetup containing the scene, camera, and compositor.

CreateMainSceneSetup(Game?)

Creates the main scene setup with an optional game instance for asset loading.

public static CodeFirstSceneSetup CreateMainSceneSetup(Game? game)

Parameters

game Game

The game instance to use for loading assets.

Returns

CodeFirstSceneSetup

A CodeFirstSceneSetup containing the scene, camera, and compositor.