Skip to main content

Interface: GlobalVariables

Properties​

__sequence​

__sequence: number

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:29


addedScriptUrls​

addedScriptUrls: string[]

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:16


canvasCssHeight​

canvasCssHeight: number

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:13


canvasCssWidth​

canvasCssWidth: number

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:12


canvasScale​

canvasScale: number

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:5


deltaTime​

deltaTime: number

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:4


erudaInitialized?​

optional erudaInitialized: boolean

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:15


erudaRequested?​

optional erudaRequested: boolean

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:14


iso8601Now​

iso8601Now: string

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:3


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:27


now​

now: number

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:2


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:11

Accessors​

eventSequence​

Get Signature​

get eventSequence(): number

Returns​

number

Defined in​

m2c2kit/packages/core/src/GlobalVariables.ts:28