MCPcopy Index your code
hub / github.com/4ian/GDevelop / constructor

Method constructor

GDJS/Runtime/variable.ts:40–42  ·  view source on GitHub ↗

* @param [varData] The optional initial content of the variable.

(varData?: VariableData)

Source from the content-addressed store, hash-verified

38 * @param [varData] The optional initial content of the variable.
39 */
40 constructor(varData?: VariableData) {
41 this.reinitialize(varData);
42 }
43
44 reinitialize(varData?: VariableData | undefined) {
45 this._type = 'number';

Callers

nothing calls this directly

Calls 1

reinitializeMethod · 0.95

Tested by

no test coverage detected