13 #include "GDCore/String.h"
18 class AbstractFileSystem;
19 class SerializerElement;
22 struct PreviewExportOptions;
34 Exporter(gd::AbstractFileSystem& fileSystem,
35 gd::String gdjsRoot_ =
"./JsPlatform");
65 codeOutputDir = codeOutputDir_;
77 gd::SerializerElement &projectDataElement);
92 gd::SerializerElement &runtimeGameOptionsElement);
95 gd::AbstractFileSystem&
100 gd::String codeOutputDir;
102 std::vector<gd::String>
Export a project or a layout to a playable HTML5/Javascript based game.
Definition: Exporter.h:32
void SerializeProjectData(const gd::Project &project, const PreviewExportOptions &options, gd::SerializerElement &projectDataElement)
Serialize a project without its events to JSON.
Definition: Exporter.cpp:205
const gd::String & GetLastError() const
Return the error that occurred during the last export.
Definition: Exporter.h:57
void SetCodeOutputDirectory(gd::String codeOutputDir_)
Change the directory where code files are generated.
Definition: Exporter.h:64
bool ExportWholePixiProject(const ExportOptions &options)
Export the specified project, using Pixi.js.
Definition: Exporter.cpp:57
void SerializeRuntimeGameOptions(const PreviewExportOptions &options, gd::SerializerElement &runtimeGameOptionsElement)
Serialize the content of the extra configuration to store in gdjs.runtimeGameOptions to JSON.
Definition: Exporter.cpp:212
bool ExportProjectForPixiPreview(const PreviewExportOptions &options)
Create a preview for the specified options.
Definition: Exporter.cpp:51
The options used to export a project.
Definition: ExporterHelper.h:425
The options used to export a project for a preview.
Definition: ExporterHelper.h:35