Files
GDevelop/GDevelop.js/types/gdvariablescontainer.js

34 lines
1.2 KiB
JavaScript

// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class gdVariablesContainer {
static Unknown: 0;
static Global: 1;
static Scene: 2;
static Object: 3;
static Local: 4;
static ExtensionGlobal: 5;
static ExtensionScene: 6;
static Parameters: 7;
static Properties: 8;
constructor(sourceType: VariablesContainer_SourceType): void;
getSourceType(): VariablesContainer_SourceType;
has(name: string): boolean;
get(name: string): gdVariable;
getAt(index: number): gdVariable;
getNameAt(index: number): string;
insert(name: string, variable: gdVariable, index: number): gdVariable;
insertNew(name: string, index: number): gdVariable;
remove(name: string): void;
rename(oldName: string, newName: string): boolean;
swap(firstIndex: number, secondIndex: number): void;
move(oldIndex: number, newIndex: number): void;
getPosition(name: string): number;
count(): number;
clear(): void;
removeRecursively(variableToRemove: gdVariable): void;
serializeTo(element: gdSerializerElement): void;
unserializeFrom(element: gdSerializerElement): void;
resetPersistentUuid(): gdVariablesContainer;
clearPersistentUuid(): gdVariablesContainer;
delete(): void;
ptr: number;
};