Flags is a feature flag implementation for Excalibur. They can only be operated before Engine construction after which they are frozen and are read-only.

Flags are used to enable experimental or preview features in Excalibur.

Hierarchy

  • Flags

Constructors

Methods

  • Internal

    Resets internal flag state, not meant to be called by users. Only used for testing.

    Calling this in your game is UNSUPPORTED

    Returns void

  • Disable a specific feature flag by name. Note: can only be set before Engine constructor time

    Parameters

    • flagName: string

    Returns void

  • Enable a specific feature flag by name. Note: can only be set before Engine constructor time

    Parameters

    • flagName: string

    Returns void

  • Freeze all flag modifications making them readonly

    Returns void

  • Check if a flag is enabled. If the flag is disabled or does not exist false is returned

    Parameters

    • flagName: string

    Returns boolean

  • Show a list of currently known flags

    Returns string[]

  • Force excalibur to load the Canvas 2D graphics context fallback

    Warning

    not all features of excalibur are supported in the Canvas 2D fallback

    Returns void