Files
GDevelop/GDevelop.js/types/gdinitialinstancescontainer.js
D8H deb802cfec Allow to override behavior properties on object instances (#8171)
* For now, this is limited to instances inside custom objects. This will be made available in the future for all instances in scenes if this works well.
2026-02-09 16:21:24 +01:00

23 lines
1.1 KiB
JavaScript

// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class gdInitialInstancesContainer {
constructor(): void;
clone(): gdInitialInstancesContainer;
getInstancesCount(): number;
iterateOverInstances(func: gdInitialInstanceFunctor): void;
iterateOverInstancesWithZOrdering(func: gdInitialInstanceFunctor, layer: string): void;
moveInstancesToLayer(fromLayer: string, toLayer: string): void;
removeAllInstancesOnLayer(layer: string): void;
removeInitialInstancesOfObject(obj: string): void;
hasInstancesOfObject(objectName: string): boolean;
isInstancesCountOfObjectGreaterThan(objectName: string, minInstanceCount: number): boolean;
someInstancesAreOnLayer(layer: string): boolean;
renameInstancesOfObject(oldName: string, newName: string): void;
removeInstance(inst: gdInitialInstance): void;
getLayerInstancesCount(layerName: string): number;
insertNewInitialInstance(): gdInitialInstance;
insertInitialInstance(inst: gdInitialInstance): gdInitialInstance;
serializeTo(element: gdSerializerElement): void;
unserializeFrom(project: gdProject, element: gdSerializerElement): void;
delete(): void;
ptr: number;
};