GDevelop JS Platform
Platform for developing HTML5/Javascript based games with GDevelop
Public Member Functions | Static Public Member Functions | List of all members
gdjs::ObjectCodeGenerator Class Reference

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.
 

Detailed Description

The class being responsible for generating JavaScript code for EventsBasedObject.

See also gd::EventsCodeGenerator.


The documentation for this class was generated from the following files: