![]() |
GDevelop JS Platform
Platform for developing HTML5/Javascript based games with GDevelop
|
The class being responsible for generating JavaScript code for EventsBasedObject. More...
#include <ObjectCodeGenerator.h>
Public Member Functions | |
ObjectCodeGenerator (gd::Project &project_) | |
gd::String | GenerateRuntimeObjectCompleteCode (const gd::EventsFunctionsExtension &eventsFunctionsExtension, const gd::EventsBasedObject &eventsBasedObject, const gd::String &codeNamespace, const std::map< gd::String, gd::String > &objectMethodMangledNames, std::set< gd::String > &includeFiles, bool compilationForRuntime=false) |
Generate the complete JS class (gdjs.CustomRuntimeObject ) for the object. | |
Static Public Member Functions | |
static gd::String | GetObjectPropertyGetterName (const gd::String &propertyName) |
Generate the name of the method to get the value of the property of a object. | |
static gd::String | GetObjectPropertySetterName (const gd::String &propertyName) |
Generate the name of the method to set the value of the property of a object. | |
static gd::String | GetObjectPropertyToggleFunctionName (const gd::String &propertyName) |
Generate the name of the method to toggle the value of the boolean property of a behavior. | |
The class being responsible for generating JavaScript code for EventsBasedObject.
See also gd::EventsCodeGenerator.