Files
GDevelop/GDevelop.js/types/gdvariable.js
T
AlexandreS 3356400026 Redesign of the variables editor
* Each row should be easier to read in a glance
* You can now collapse collection variables for a better readability
* Reorder and move of variables is now available with drag n drop
* You can now undo and redo changes
* Paste one or more variables at any level of depth you want
* Search in the names and values of each variables with a filter effect
2022-05-18 15:18:54 +02:00

39 lines
1.4 KiB
JavaScript

// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class gdVariable {
static String: 0;
static Number: 1;
static Boolean: 2;
static Structure: 3;
static Array: 4;
constructor(): void;
static isPrimitive(type: Variable_Type): boolean;
getType(): Variable_Type;
castTo(type: string): void;
setString(str: string): void;
getString(): string;
setValue(val: number): void;
getValue(): number;
setBool(val: boolean): void;
getBool(): boolean;
setFolded(val: boolean): void;
isFolded(): boolean;
getChildrenCount(): number;
contains(variableToSearch: gdVariable, recursive: boolean): boolean;
hasChild(str: string): boolean;
getChild(str: string): gdVariable;
removeChild(name: string): void;
renameChild(oldName: string, newName: string): boolean;
getAllChildrenNames(): gdVectorString;
removeRecursively(variableToRemove: gdVariable): void;
getAtIndex(index: number): gdVariable;
pushNew(): gdVariable;
removeAtIndex(index: number): void;
getAllChildrenArray(): gdVectorVariable;
moveChildInArray(oldIndex: number, newIndex: number): void;
insertAtIndex(variable: gdVariable, index: number): boolean;
insertChild(name: string, variable: gdVariable): boolean;
serializeTo(element: gdSerializerElement): void;
unserializeFrom(element: gdSerializerElement): void;
delete(): void;
ptr: number;
};