like2d
    Preparing search index...

    Type Alias SceneEx<S>

    SceneEx: (like: Like, scenes: SceneManager) => S & SceneInstance

    A helper for extending Scenes as to have known interfaces beyond the generic ones. For example:

    type UISceneInstance = SceneInstance & {
    buttonClicked(name: string) => void;
    };
    type UIScene = SceneEx<UISceneInstance>;

    Now, a parent composing scene can take in UIScene rather than Scene, and it has no need to cast anything.

    Type Parameters

    • S

    Type Declaration