Interface: GlobalVariables
Properties
__sequence
__sequence:
number
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:35
addedScriptUrls
addedScriptUrls:
string
[]
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:22
canvasCssHeight
canvasCssHeight:
number
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:19
canvasCssWidth
canvasCssWidth:
number
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:18
canvasScale
canvasScale:
number
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:11
deltaTime
deltaTime:
number
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:10
erudaInitialized?
optional
erudaInitialized:boolean
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:21
erudaRequested?
optional
erudaRequested:boolean
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:20
iso8601Now
iso8601Now:
string
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:9
m2NodeClassRegistry
m2NodeClassRegistry:
object
A dictionary of all M2Node
classes that have been registered.
This is used to instantiate M2Node
objects from their class name.
Remarks
The type should be { [key: string]: M2NodeConstructor }
or
M2NodeClassRegistry
. But, this creates problems in Jest: I could not
get ts-jest to compile when the type of a global variable is not a
simple type. Instead, the type of m2NodeClassRegistry
is object
,
and I will assert it to M2NodeClassRegistry
when needed.
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:33
now
now:
number
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:8
rootScale
rootScale:
number
rootScale is the scaling factor to be applied to scenes to scale up or down to fit the device's window while preserving the aspect ratio the game was designed for
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:17
Accessors
eventSequence
Get Signature
get eventSequence():
number
Returns
number
Defined in
m2c2kit/packages/core/src/GlobalVariables.ts:34