Files
GDevelop/GDevelop.js/types/gdvariableinstructionswitcher.js
D8H 75bfa5cb45 Unify variable instructions and handle local variables (#6459)
- Global or scene variables can be used with a unique action and condition.
- Object variables can be used with a unique action and condition.
- Variables need to be declared following the same logic as the new expression syntax.
- Local variable can be declared on events
- Extensions have their own variables
- Show a diagnostic report when a preview is launched and there are missing scene variables, object variables or behaviors.
  - This is especially useful if external events are shared between several scenes.
2024-05-20 23:14:07 +02:00

12 lines
898 B
JavaScript

// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class gdVariableInstructionSwitcher {
static isSwitchableVariableInstruction(instructionType: string): boolean;
static isSwitchableObjectVariableInstruction(instructionType: string): boolean;
static getSwitchableVariableInstructionIdentifier(instructionType: string): string;
static getSwitchableInstructionVariableType(instructionType: string): Variable_Type;
static switchVariableInstructionType(instruction: gdInstruction, variableType: Variable_Type): void;
static getVariableTypeFromParameters(platform: gdPlatform, projectScopedContainers: gdProjectScopedContainers, instruction: gdInstruction): Variable_Type;
static switchBetweenUnifiedInstructionIfNeeded(platform: gdPlatform, projectScopedContainers: gdProjectScopedContainers, instruction: gdInstruction): void;
delete(): void;
ptr: number;
};