Files
D8H cea1410fb3 Add syntax highlighting for expressions in events (#8538)
Complex expressions and formula will now be shown using multiple colors, like the rest of events. This allows to identify objects, numbers, strings in a long formula.
2026-05-18 18:10:00 +02:00

318 lines
18 KiB
JavaScript

// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class libGDevelop {
assertObjectAlive(gdEmscriptenObject): void;
getPointer(gdEmscriptenObject): number;
castObject<T>(gdEmscriptenObject, Class<T>): T;
wrapPointer<T>(ptr: number, objectClass: Class<T>): T;
compare(gdEmscriptenObject, gdEmscriptenObject): boolean;
_malloc(size: number): number;
_free(ptr: number): void;
HEAPU8: Uint8Array;
getTypeOfObject(globalObjectsContainer: gdObjectsContainer, objectsContainer: gdObjectsContainer, objectName: string, searchInGroups: boolean): string;
getTypeOfBehavior(globalObjectsContainer: gdObjectsContainer, objectsContainer: gdObjectsContainer, objectName: string, searchInGroups: boolean): string;
getBehaviorsOfObject(globalObjectsContainer: gdObjectsContainer, objectsContainer: gdObjectsContainer, objectName: string, searchInGroups: boolean): gdVectorString;
isDefaultBehavior(globalObjectsContainer: gdObjectsContainer, objectsContainer: gdObjectsContainer, objectName: string, behaviorName: string, searchInGroups: boolean): boolean;
getTypeOfBehaviorInObjectOrGroup(globalObjectsContainer: gdObjectsContainer, objectsContainer: gdObjectsContainer, objectName: string, behaviorName: string, searchInGroups: boolean): string;
getBehaviorNamesInObjectOrGroup(globalObjectsContainer: gdObjectsContainer, objectsContainer: gdObjectsContainer, objectName: string, behaviorName: string, searchInGroups: boolean): gdVectorString;
// $FlowFixMe[cannot-resolve-name]
removeFromVectorParameterMetadata(gdVectorParameterMetadata, index: number): void;
// $FlowFixMe[cannot-resolve-name]
swapInVectorParameterMetadata(gdVectorParameterMetadata, oldIndex: number, newIndex: number): void;
asStandardEvent(gdBaseEvent): gdStandardEvent;
asElseEvent(gdBaseEvent): gdStandardEvent;
asRepeatEvent(gdBaseEvent): gdRepeatEvent;
asWhileEvent(gdBaseEvent): gdWhileEvent;
asForEachEvent(gdBaseEvent): gdForEachEvent;
asForEachChildVariableEvent(gdBaseEvent): gdForEachChildVariableEvent;
asCommentEvent(gdBaseEvent): gdCommentEvent;
asGroupEvent(gdBaseEvent): gdGroupEvent;
asLinkEvent(gdBaseEvent): gdLinkEvent;
asJsCodeEvent(gdBaseEvent): gdJsCodeEvent;
asPlatform(gdPlatform): gdPlatform;
asSpriteConfiguration(gdObjectConfiguration): gdSpriteObject;
asTiledSpriteConfiguration(gdObjectConfiguration): gdTiledSpriteObject;
asPanelSpriteConfiguration(gdObjectConfiguration): gdPanelSpriteObject;
asTextObjectConfiguration(gdObjectConfiguration): gdTextObject;
asShapePainterConfiguration(gdObjectConfiguration): gdShapePainterObject;
// $FlowFixMe[cannot-resolve-name]
asAdMobConfiguration(gdObjectConfiguration): gdAdMobObject;
asTextEntryConfiguration(gdObjectConfiguration): gdTextEntryObject;
asParticleEmitterConfiguration(gdObjectConfiguration): gdParticleEmitterObject;
asObjectJsImplementation(gdObjectConfiguration): gdObjectJsImplementation;
asCustomObjectConfiguration(gdObjectConfiguration): gdCustomObjectConfiguration;
asModel3DConfiguration(gdObjectConfiguration): gdModel3DObjectConfiguration;
asSpineConfiguration(gdObjectConfiguration): gdSpineObjectConfiguration;
asImageResource(gdResource): gdImageResource;
VectorString: Class<gdVectorString>;
VectorPlatformExtension: Class<gdVectorPlatformExtension>;
VectorDependencyMetadata: Class<gdVectorDependencyMetadata>;
VectorSourceFileMetadata: Class<gdVectorSourceFileMetadata>;
VectorInt: Class<gdVectorInt>;
VectorVariable: Class<gdVectorVariable>;
VectorObjectFolderOrObject: Class<gdVectorObjectFolderOrObject>;
VectorPropertyFolderOrProperty: Class<gdVectorPropertyFolderOrProperty>;
VectorFunctionFolderOrFunction: Class<gdVectorFunctionFolderOrFunction>;
VectorScreenshot: Class<gdVectorScreenshot>;
MapStringString: Class<gdMapStringString>;
MapStringBoolean: Class<gdMapStringBoolean>;
MapStringDouble: Class<gdMapStringDouble>;
MapStringVariable: Class<gdMapStringVariable>;
MapStringExpressionMetadata: Class<gdMapStringExpressionMetadata>;
MapStringInstructionMetadata: Class<gdMapStringInstructionMetadata>;
MapStringEventMetadata: Class<gdMapStringEventMetadata>;
MapExtensionProperties: Class<gdMapExtensionProperties>;
SetString: Class<gdSetString>;
ProjectHelper: Class<gdProjectHelper>;
EventsVariablesFinder: Class<gdEventsVariablesFinder>;
EventsIdentifiersFinder: Class<gdEventsIdentifiersFinder>;
EventsFunctionSelfCallChecker: Class<gdEventsFunctionSelfCallChecker>;
InstructionOrExpressionGroupMetadata: Class<gdInstructionOrExpressionGroupMetadata>;
VersionWrapper: Class<gdVersionWrapper>;
Platform: Class<gdPlatform>;
JsPlatform: Class<gdJsPlatform>;
PairStringVariable: Class<gdPairStringVariable>;
Variable_Type: Class<Variable_Type>;
VariableInstructionSwitcher: Class<gdVariableInstructionSwitcher>;
Variable: Class<gdVariable>;
VariablesContainer_SourceType: Class<VariablesContainer_SourceType>;
VariablesContainer: Class<gdVariablesContainer>;
VariablesContainersList: Class<gdVariablesContainersList>;
ObjectGroup: Class<gdObjectGroup>;
ObjectVariableHelper: Class<gdObjectVariableHelper>;
EventsBasedObjectVariantHelper: Class<gdEventsBasedObjectVariantHelper>;
ObjectGroupsContainer: Class<gdObjectGroupsContainer>;
PlatformSpecificAssets: Class<gdPlatformSpecificAssets>;
LoadingScreen: Class<gdLoadingScreen>;
Watermark: Class<gdWatermark>;
ObjectFolderOrObject: Class<gdObjectFolderOrObject>;
ObjectsContainer_SourceType: Class<ObjectsContainer_SourceType>;
ObjectsContainer: Class<gdObjectsContainer>;
Project: Class<gdProject>;
ObjectsContainersList_VariableExistence: Class<ObjectsContainersList_VariableExistence>;
ObjectsContainersList: Class<gdObjectsContainersList>;
ProjectScopedContainers: Class<gdProjectScopedContainers>;
ExtensionProperties: Class<gdExtensionProperties>;
BehaviorDefaultFlagClearer: Class<gdBehaviorDefaultFlagClearer>;
Behavior: Class<gdBehavior>;
BehaviorJsImplementation: Class<gdBehaviorJsImplementation>;
BehaviorsSharedData: Class<gdBehaviorsSharedData>;
BehaviorSharedDataJsImplementation: Class<gdBehaviorSharedDataJsImplementation>;
ObjectConfiguration: Class<gdObjectConfiguration>;
UniquePtrObjectConfiguration: Class<gdUniquePtrObjectConfiguration>;
gdObject: Class<gdObject>;
UniquePtrObject: Class<gdUniquePtrObject>;
ObjectJsImplementation: Class<gdObjectJsImplementation>;
CustomObjectConfiguration_EdgeAnchor: Class<CustomObjectConfiguration_EdgeAnchor>;
CustomObjectConfiguration: Class<gdCustomObjectConfiguration>;
Layout: Class<gdLayout>;
ExternalEvents: Class<gdExternalEvents>;
ExternalLayout: Class<gdExternalLayout>;
Effect: Class<gdEffect>;
EffectsContainer: Class<gdEffectsContainer>;
Layer: Class<gdLayer>;
LayersContainer: Class<gdLayersContainer>;
PropertyDescriptorChoice: Class<gdPropertyDescriptorChoice>;
VectorPropertyDescriptorChoice: Class<gdVectorPropertyDescriptorChoice>;
PropertyDescriptor: Class<gdPropertyDescriptor>;
MeasurementUnit: Class<gdMeasurementUnit>;
MeasurementBaseUnit: Class<gdMeasurementBaseUnit>;
NamedPropertyDescriptor: Class<gdNamedPropertyDescriptor>;
MapStringPropertyDescriptor: Class<gdMapStringPropertyDescriptor>;
MapStringSerializerValue: Class<gdMapStringSerializerValue>;
VectorPairStringSharedPtrSerializerElement: Class<gdVectorPairStringSharedPtrSerializerElement>;
Resource: Class<gdResource>;
ResourcesContainer_SourceType: Class<ResourcesContainer_SourceType>;
ResourcesContainer: Class<gdResourcesContainer>;
ResourcesContainersList: Class<gdResourcesContainersList>;
ImageResource: Class<gdImageResource>;
AudioResource: Class<gdAudioResource>;
FontResource: Class<gdFontResource>;
BitmapFontResource: Class<gdBitmapFontResource>;
VideoResource: Class<gdVideoResource>;
JsonResource: Class<gdJsonResource>;
SpineResource: Class<gdSpineResource>;
TilemapResource: Class<gdTilemapResource>;
TilesetResource: Class<gdTilesetResource>;
Model3DResource: Class<gdModel3DResource>;
AtlasResource: Class<gdAtlasResource>;
JavaScriptResource: Class<gdJavaScriptResource>;
InitialInstance: Class<gdInitialInstance>;
InitialInstancesContainer: Class<gdInitialInstancesContainer>;
HighestZOrderFinder: Class<gdHighestZOrderFinder>;
InitialInstanceFunctor: Class<gdInitialInstanceFunctor>;
InitialInstanceJSFunctorWrapper: Class<gdInitialInstanceJSFunctorWrapper>;
InitialInstanceJSFunctor: Class<gdInitialInstanceJSFunctor>;
SerializerValue: Class<gdSerializerValue>;
SerializerElement: Class<gdSerializerElement>;
SharedPtrSerializerElement: Class<gdSharedPtrSerializerElement>;
Serializer: Class<gdSerializer>;
BinarySerializer: Class<gdBinarySerializer>;
ObjectAssetSerializer: Class<gdObjectAssetSerializer>;
ExtensionDependencyCache: Class<gdExtensionDependencyCache>;
InstructionsList: Class<gdInstructionsList>;
Instruction: Class<gdInstruction>;
Expression: Class<gdExpression>;
VectorPairStringTextFormatting: Class<gdVectorPairStringTextFormatting>;
TextFormatting: Class<gdTextFormatting>;
InstructionSentenceFormatter: Class<gdInstructionSentenceFormatter>;
ParameterOptions: Class<gdParameterOptions>;
AbstractFunctionMetadata: Class<gdAbstractFunctionMetadata>;
InstructionMetadata: Class<gdInstructionMetadata>;
ExpressionMetadata: Class<gdExpressionMetadata>;
MultipleInstructionMetadata: Class<gdMultipleInstructionMetadata>;
DependencyMetadata: Class<gdDependencyMetadata>;
SourceFileMetadata: Class<gdSourceFileMetadata>;
ParameterMetadata: Class<gdParameterMetadata>;
ValueTypeMetadata: Class<gdValueTypeMetadata>;
ParameterMetadataContainer: Class<gdParameterMetadataContainer>;
ParameterMetadataTools: Class<gdParameterMetadataTools>;
ObjectMetadata: Class<gdObjectMetadata>;
InGameEditorResourceMetadata: Class<gdInGameEditorResourceMetadata>;
QuickCustomization_Visibility: Class<QuickCustomization_Visibility>;
QuickCustomization: Class<gdQuickCustomization>;
QuickCustomizationVisibilitiesContainer: Class<gdQuickCustomizationVisibilitiesContainer>;
Screenshot: Class<gdScreenshot>;
CaptureOptions: Class<gdCaptureOptions>;
BehaviorMetadata: Class<gdBehaviorMetadata>;
EffectMetadata: Class<gdEffectMetadata>;
EventMetadata: Class<gdEventMetadata>;
PlatformExtension: Class<gdPlatformExtension>;
EventsList: Class<gdEventsList>;
BaseEvent: Class<gdBaseEvent>;
StandardEvent: Class<gdStandardEvent>;
ElseEvent: Class<gdElseEvent>;
RepeatEvent: Class<gdRepeatEvent>;
WhileEvent: Class<gdWhileEvent>;
ForEachEvent: Class<gdForEachEvent>;
ForEachChildVariableEvent: Class<gdForEachChildVariableEvent>;
CommentEvent: Class<gdCommentEvent>;
GroupEvent: Class<gdGroupEvent>;
LinkEvent: Class<gdLinkEvent>;
EventsRemover: Class<gdEventsRemover>;
EventsListUnfolder: Class<gdEventsListUnfolder>;
EventsSearchResult: Class<gdEventsSearchResult>;
VectorEventsSearchResult: Class<gdVectorEventsSearchResult>;
EventsRefactorer: Class<gdEventsRefactorer>;
UnfilledRequiredBehaviorPropertyProblem: Class<gdUnfilledRequiredBehaviorPropertyProblem>;
VectorUnfilledRequiredBehaviorPropertyProblem: Class<gdVectorUnfilledRequiredBehaviorPropertyProblem>;
ProjectBrowserHelper: Class<gdProjectBrowserHelper>;
ResourceExposer: Class<gdResourceExposer>;
VariablesChangeset: Class<gdVariablesChangeset>;
WholeProjectRefactorer: Class<gdWholeProjectRefactorer>;
BehaviorParameterFiller: Class<gdBehaviorParameterFiller>;
ParameterValidationResult: Class<gdParameterValidationResult>;
InstructionValidator: Class<gdInstructionValidator>;
ObjectTools: Class<gdObjectTools>;
EventsBasedObjectDependencyFinder: Class<gdEventsBasedObjectDependencyFinder>;
PropertyFunctionGenerator: Class<gdPropertyFunctionGenerator>;
UsedExtensionsResult: Class<gdUsedExtensionsResult>;
UsedExtensionsFinder: Class<gdUsedExtensionsFinder>;
UsedObjectTypeFinder: Class<gdUsedObjectTypeFinder>;
ExampleExtensionUsagesFinder: Class<gdExampleExtensionUsagesFinder>;
InstructionsCountEvaluator: Class<gdInstructionsCountEvaluator>;
ExtensionAndBehaviorMetadata: Class<gdExtensionAndBehaviorMetadata>;
ExtensionAndObjectMetadata: Class<gdExtensionAndObjectMetadata>;
ExtensionAndEffectMetadata: Class<gdExtensionAndEffectMetadata>;
ExtensionAndInstructionMetadata: Class<gdExtensionAndInstructionMetadata>;
ExtensionAndExpressionMetadata: Class<gdExtensionAndExpressionMetadata>;
MetadataProvider: Class<gdMetadataProvider>;
ProjectDiagnostic_ErrorType: Class<ProjectDiagnostic_ErrorType>;
ProjectDiagnostic: Class<gdProjectDiagnostic>;
DiagnosticReport: Class<gdDiagnosticReport>;
WholeProjectDiagnosticReport: Class<gdWholeProjectDiagnosticReport>;
ExpressionParserError_ErrorType: Class<ExpressionParserError_ErrorType>;
ExpressionParserError: Class<gdExpressionParserError>;
VectorExpressionParserError: Class<gdVectorExpressionParserError>;
ExpressionParser2NodeWorker: Class<gdExpressionParser2NodeWorker>;
ExpressionValidator: Class<gdExpressionValidator>;
ExpressionCompletionDescription_CompletionKind: Class<ExpressionCompletionDescription_CompletionKind>;
ExpressionCompletionDescription: Class<gdExpressionCompletionDescription>;
VectorExpressionCompletionDescription: Class<gdVectorExpressionCompletionDescription>;
ExpressionCompletionFinder: Class<gdExpressionCompletionFinder>;
ExpressionColorationDescription_ColorationKind: Class<ExpressionColorationDescription_ColorationKind>;
ExpressionColorationDescription: Class<gdExpressionColorationDescription>;
VectorExpressionColorationDescription: Class<gdVectorExpressionColorationDescription>;
ExpressionSyntaxColoringHelper: Class<gdExpressionSyntaxColoringHelper>;
ExpressionNodeLocationFinder: Class<gdExpressionNodeLocationFinder>;
ExpressionTypeFinder: Class<gdExpressionTypeFinder>;
ExpressionNode: Class<gdExpressionNode>;
UniquePtrExpressionNode: Class<gdUniquePtrExpressionNode>;
ExpressionParser2: Class<gdExpressionParser2>;
EventsFunction_FunctionType: Class<EventsFunction_FunctionType>;
EventsFunction: Class<gdEventsFunction>;
FunctionFolderOrFunction: Class<gdFunctionFolderOrFunction>;
EventsFunctionsContainer_FunctionOwner: Class<EventsFunctionsContainer_FunctionOwner>;
EventsFunctionsContainer: Class<gdEventsFunctionsContainer>;
AbstractEventsBasedEntity: Class<gdAbstractEventsBasedEntity>;
EventsBasedBehavior: Class<gdEventsBasedBehavior>;
EventsBasedBehaviorsList: Class<gdEventsBasedBehaviorsList>;
EventsBasedObject: Class<gdEventsBasedObject>;
EventsBasedObjectVariant: Class<gdEventsBasedObjectVariant>;
EventsBasedObjectVariantsContainer: Class<gdEventsBasedObjectVariantsContainer>;
EventsBasedObjectsList: Class<gdEventsBasedObjectsList>;
PropertyFolderOrProperty: Class<gdPropertyFolderOrProperty>;
PropertiesContainer: Class<gdPropertiesContainer>;
EventsFunctionsExtension: Class<gdEventsFunctionsExtension>;
AbstractFileSystem: Class<gdAbstractFileSystem>;
AbstractFileSystemJS: Class<gdAbstractFileSystemJS>;
ProjectResourcesAdder: Class<gdProjectResourcesAdder>;
ArbitraryEventsWorker: Class<gdArbitraryEventsWorker>;
ArbitraryObjectsWorker: Class<gdArbitraryObjectsWorker>;
EventsParametersLister: Class<gdEventsParametersLister>;
EventsPositionFinder: Class<gdEventsPositionFinder>;
EventsTypesLister: Class<gdEventsTypesLister>;
InstructionsTypeRenamer: Class<gdInstructionsTypeRenamer>;
EventsContext: Class<gdEventsContext>;
EventsContextAnalyzer: Class<gdEventsContextAnalyzer>;
ReadOnlyArbitraryEventsWorkerWithContext: Class<gdReadOnlyArbitraryEventsWorkerWithContext>;
ReadOnlyArbitraryEventsWorkerWithContextJS: Class<gdReadOnlyArbitraryEventsWorkerWithContextJS>;
ArbitraryResourceWorker: Class<gdArbitraryResourceWorker>;
ArbitraryResourceWorkerJS: Class<gdArbitraryResourceWorkerJS>;
ResourcesMergingHelper: Class<gdResourcesMergingHelper>;
ResourcesRenamer: Class<gdResourcesRenamer>;
ProjectResourcesCopier: Class<gdProjectResourcesCopier>;
ObjectsUsingResourceCollector: Class<gdObjectsUsingResourceCollector>;
ResourcesInUseHelper: Class<gdResourcesInUseHelper>;
EditorSettings: Class<gdEditorSettings>;
Point: Class<gdPoint>;
VectorPoint: Class<gdVectorPoint>;
Polygon2d: Class<gdPolygon2d>;
VectorPolygon2d: Class<gdVectorPolygon2d>;
Sprite: Class<gdSprite>;
Direction: Class<gdDirection>;
Animation: Class<gdAnimation>;
SpriteAnimationList: Class<gdSpriteAnimationList>;
SpriteObject: Class<gdSpriteObject>;
Model3DAnimation: Class<gdModel3DAnimation>;
Model3DObjectConfiguration: Class<gdModel3DObjectConfiguration>;
SpineAnimation: Class<gdSpineAnimation>;
SpineObjectConfiguration: Class<gdSpineObjectConfiguration>;
Vector2f: Class<gdVector2f>;
VectorVector2f: Class<gdVectorVector2f>;
TextObject: Class<gdTextObject>;
TiledSpriteObject: Class<gdTiledSpriteObject>;
PanelSpriteObject: Class<gdPanelSpriteObject>;
ShapePainterObject: Class<gdShapePainterObject>;
TextEntryObject: Class<gdTextEntryObject>;
ParticleEmitterObject_RendererType: Class<ParticleEmitterObject_RendererType>;
ParticleEmitterObject: Class<gdParticleEmitterObject>;
LayoutCodeGenerator: Class<gdLayoutCodeGenerator>;
BehaviorCodeGenerator: Class<gdBehaviorCodeGenerator>;
// $FlowFixMe[cannot-resolve-name]
ObjectCodeGenerator: Class<gdObjectCodeGenerator>;
EventsFunctionsExtensionCodeGenerator: Class<gdEventsFunctionsExtensionCodeGenerator>;
PreviewExportOptions: Class<gdPreviewExportOptions>;
ExportOptions: Class<gdExportOptions>;
// $FlowFixMe[cannot-resolve-name]
Exporter: Class<gdExporter>;
JsCodeEvent: Class<gdJsCodeEvent>;
MetadataDeclarationHelper: Class<gdMetadataDeclarationHelper>;
MemoryTrackedRegistry: Class<gdMemoryTrackedRegistry>;
};