Files
GDevelop/GDevelop.js/types/gdeventsfunction.js
T
Arthur Pacaud 801d58695c Add support for private functions to extensions made in the editor (#2305)
* Actions/conditions/expressions made with events in the editor can be marked "private": they can be used inside the extension (or inside the behavior), but can't be used in the scene events sheet.
* This is useful to share some "internal" logic that you don't want to make available from the events sheet.
2021-02-15 18:31:38 +01:00

28 lines
1.0 KiB
JavaScript

// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class gdEventsFunction {
static Action: 0;
static Condition: 1;
static Expression: 2;
static StringExpression: 3;
constructor(): void;
clone(): gdEventsFunction;
setDescription(description: string): gdEventsFunction;
getDescription(): string;
setName(name: string): gdEventsFunction;
getName(): string;
setFullName(fullName: string): gdEventsFunction;
getFullName(): string;
setSentence(sentence: string): gdEventsFunction;
getSentence(): string;
setPrivate(isPrivate: boolean): gdEventsFunction;
isPrivate(): boolean;
setFunctionType(type: EventsFunction_FunctionType): gdEventsFunction;
getFunctionType(): EventsFunction_FunctionType;
getEvents(): gdEventsList;
getParameters(): gdVectorParameterMetadata;
getObjectGroups(): gdObjectGroupsContainer;
serializeTo(element: gdSerializerElement): void;
unserializeFrom(project: gdProject, element: gdSerializerElement): void;
delete(): void;
ptr: number;
};