Flags
Index
Constructors
constructor
Returns Flags
Methods
publicstaticdisable
Disable a specific feature flag by name. Note: can only be set before Engine constructor time
Parameters
flagName: string
Returns void
publicstaticenable
Enable a specific feature flag by name. Note: can only be set before Engine constructor time
Parameters
flagName: string
Returns void
publicstaticfreeze
Freeze all flag modifications making them readonly
Returns void
publicstaticisEnabled
Check if a flag is enabled. If the flag is disabled or does not exist
false
is returnedParameters
flagName: string
Returns boolean
publicstaticshow
Show a list of currently known flags
Returns string[]
publicstaticuseCanvasGraphicsContext
Force excalibur to load the Canvas 2D graphics context fallback
Returns void
publicstaticuseLegacyImageRenderer
Force excalibur to use the less optimized image renderer
Returns void
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.