Interface: GlobalVariables
Properties
__sequence
__sequence:
number
Source
addedScriptUrls
addedScriptUrls:
string
[]
Source
canvasCssHeight
canvasCssHeight:
number
Source
canvasCssWidth
canvasCssWidth:
number
Source
canvasScale
canvasScale:
number
Source
deltaTime
deltaTime:
number
Source
erudaInitialized?
optional
erudaInitialized:boolean
Source
erudaRequested?
optional
erudaRequested:boolean
Source
iso8601Now
iso8601Now:
string
Source
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.
Source
now
now:
number
Source
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
Source
Accessors
eventSequence
get
eventSequence():number
Returns
number