GDevelop JS Platform
Platform for developing HTML5/Javascript based games with GDevelop
LayoutCodeGenerator.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 #pragma once
7 
8 #include <map>
9 #include <set>
10 #include <string>
11 #include <vector>
12 #include "GDCore/Project/Layout.h"
13 #include "GDCore/Events/CodeGeneration/DiagnosticReport.h"
14 
15 namespace gdjs {
16 
25  public:
26  LayoutCodeGenerator(const gd::Project& project_)
27  : project(project_){};
28 
32  gd::String GenerateLayoutCompleteCode(
33  const gd::Layout& layout,
34  std::set<gd::String>& includeFiles,
35  gd::DiagnosticReport& diagnosticReport,
36  bool compilationForRuntime);
37 
38  private:
39  const gd::Project& project;
40 };
41 
42 } // namespace gdjs
The class being responsible for generating JavaScript code for the events of a scene.
Definition: LayoutCodeGenerator.h:24
gd::String GenerateLayoutCompleteCode(const gd::Layout &layout, std::set< gd::String > &includeFiles, gd::DiagnosticReport &diagnosticReport, bool compilationForRuntime)
Generate the complete code for the events of the specified scene.
Definition: LayoutCodeGenerator.cpp:11