Options
All
  • Public
  • Public/Protected
  • All
Menu

A namespace of functional equivalents to the gdjs.Variable methods, needed for events code generation.

namespace

Index

Functions

  • getFirstVariableNumber(array: Variable): number
  • getFirstVariableString(array: Variable): string
  • getLastVariableNumber(array: Variable): number
  • getLastVariableString(array: Variable): string
  • getVariableBoolean(variable: Variable, compareWith: boolean): boolean
  • Compares the boolean value of a variable. Equivalent to variable.getAsBoolean() === boolean. This shortcut function is needed for events code generation.

    Parameters

    Returns boolean

  • getVariableChildCount(variable: Variable): number
  • getVariableNumber(variable: Variable): number
  • getVariableString(variable: Variable): string
  • sceneVariableExists(runtimeScene: RuntimeScene, variableName: string): boolean
  • setVariableBoolean(variable: Variable, newValue: boolean): void
  • toggleVariableBoolean(variable: Variable): void
  • valuePush(array: Variable, value: string | number | boolean): void
  • variableChildExists(variable: Variable, childName: string): boolean
  • variableClearChildren(variable: Variable): void
  • variableRemoveAt(array: Variable, index: number): void
  • variableRemoveChild(variable: Variable, childName: string): void

Generated using TypeDoc