![]() |
GDevelop JS Platform
Platform for developing HTML5/Javascript based games with GDevelop
|
The class being responsible for generating JavaScript code for EventsBasedBehavior. More...
#include <BehaviorCodeGenerator.h>
Public Member Functions | |
BehaviorCodeGenerator (gd::Project &project_) | |
gd::String | GenerateRuntimeBehaviorCompleteCode (const gd::EventsFunctionsExtension &eventsFunctionsExtension, const gd::EventsBasedBehavior &eventsBasedBehavior, const gd::String &codeNamespace, const std::map< gd::String, gd::String > &behaviorMethodMangledNames, std::set< gd::String > &includeFiles, bool compilationForRuntime=false) |
Generate the complete JS class (gdjs.RuntimeBehavior ) for the behavior. | |
Static Public Member Functions | |
static gd::String | GetBehaviorPropertyGetterName (const gd::String &propertyName) |
Generate the name of the method to get the value of the property of a behavior. | |
static gd::String | GetBehaviorPropertySetterName (const gd::String &propertyName) |
Generate the name of the method to set the value of the property of a behavior. | |
static gd::String | GetBehaviorPropertyToggleFunctionName (const gd::String &propertyName) |
Generate the name of the method to toggle the value of the boolean property of a behavior. | |
static gd::String | GetBehaviorSharedPropertyGetterName (const gd::String &propertyName) |
Generate the name of the method to get the value of the shared property of a behavior. | |
static gd::String | GetBehaviorSharedPropertySetterName (const gd::String &propertyName) |
Generate the name of the method to set the value of the shared property of a behavior. | |
static gd::String | GetBehaviorSharedPropertyToggleFunctionName (const gd::String &propertyName) |
Generate the name of the method to toggle the value of the boolean shared property of a behavior. | |
The class being responsible for generating JavaScript code for EventsBasedBehavior.
See also gd::EventsCodeGenerator.