Skip to main content

Interface: GlobalVariables

Properties

__sequence

__sequence: number

Source

GlobalVariables.ts:35


addedScriptUrls

addedScriptUrls: string[]

Source

GlobalVariables.ts:22


canvasCssHeight

canvasCssHeight: number

Source

GlobalVariables.ts:19


canvasCssWidth

canvasCssWidth: number

Source

GlobalVariables.ts:18


canvasScale

canvasScale: number

Source

GlobalVariables.ts:11


deltaTime

deltaTime: number

Source

GlobalVariables.ts:10


erudaInitialized?

optional erudaInitialized: boolean

Source

GlobalVariables.ts:21


erudaRequested?

optional erudaRequested: boolean

Source

GlobalVariables.ts:20


iso8601Now

iso8601Now: string

Source

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.

Source

GlobalVariables.ts:33


now

now: number

Source

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

Source

GlobalVariables.ts:17

Accessors

eventSequence

get eventSequence(): number

Returns

number

Source

GlobalVariables.ts:34