Nocturna
    Preparing search index...

    SceneFactory is responsible for creating and initializing scenes in Nocturna.

    Provides a static interface to instantiate different types of scenes (singleplayer, editor, tutorial, multiplayer) based on a string identifier. Each scene is created asynchronously and returns a BaseScene instance.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates a scene based on its name.

      Parameters

      • name: string

        The name of the scene to create ("singleplayer", "editor", "tutorial", "multiplayer").

      • engine: Engine

        The Babylon.js engine instance.

      • inputHandler: InputHandler

        The input handler for the scene.

      Returns Promise<BaseScene>

      A promise resolving to the requested scene instance.

      If the scene name is not found in the factory.