GDevelop JS Platform
Platform for developing HTML5/Javascript based games with GDevelop
 All Classes Files Functions Variables Pages
Public Member Functions | Static Public Member Functions | List of all members
gdjs::BehaviorCodeGenerator Class Reference

The class being responsible for generating JavaScript code for EventsBasedBhavior. More...

#include <BehaviorCodeGenerator.h>

Public Member Functions

 BehaviorCodeGenerator (gd::Project &project_)
 
gd::String GenerateRuntimeBehaviorCompleteCode (const gd::String &extensionName, 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.
 

Detailed Description

The class being responsible for generating JavaScript code for EventsBasedBhavior.

See also gd::EventsCodeGenerator.


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