GDevelop JS Platform
Platform for developing HTML5/Javascript based games with GDevelop
EventsFunctionsExtensionCodeGenerator.h
1 /*
2  * GDevelop JS Platform
3  * Copyright 2008-present Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 #ifndef GDJS_EVENTSFUNCTIONSEXTENSIONCODEGENERATOR_H
7 #define GDJS_EVENTSFUNCTIONSEXTENSIONCODEGENERATOR_H
8 #include <map>
9 #include <set>
10 #include <string>
11 #include <vector>
12 #include "GDCore/Project/EventsFunctionsExtension.h"
13 
14 namespace gdjs {
15 
24  public:
25  EventsFunctionsExtensionCodeGenerator(gd::Project& project_)
26  : project(project_){};
27 
32  const gd::EventsFunctionsExtension& extension,
33  const gd::EventsFunction& eventsFunction,
34  const gd::String& codeNamespace,
35  std::set<gd::String>& includeFiles,
36  bool compilationForRuntime);
37 
38  private:
43  gd::String GenerateLifecycleFunctionRegistrationCode(
44  const gd::EventsFunction& eventsFunction,
45  const gd::String& codeNamespace);
46 
47  gd::Project& project;
48 };
49 
50 } // namespace gdjs
51 #endif // GDJS_EVENTSFUNCTIONSEXTENSIONCODEGENERATOR_H
The class being responsible for generating JavaScript code for EventsFunctionsExtension.
Definition: EventsFunctionsExtensionCodeGenerator.h:23
gd::String GenerateFreeEventsFunctionCompleteCode(const gd::EventsFunctionsExtension &extension, const gd::EventsFunction &eventsFunction, const gd::String &codeNamespace, std::set< gd::String > &includeFiles, bool compilationForRuntime)
Generate the complete code for the specified events function.
Definition: EventsFunctionsExtensionCodeGenerator.cpp:13