3#include <SDL/SdlCommandGenerator.h>
4#include <SDL/SdlDependencyResolver.h>
6namespace ph {
class FormattedTextOutputStream; }
7namespace ph {
class Path; }
30 const SdlClass* targetClass,
31 SdlOutputContext* out_ctx)
override;
36 const ISdlResource* resource,
37 const SdlOutputContext& ctx,
38 SdlOutputClauses& clauses)
override;
41 std::string_view commandStr,
42 const SdlOutputContext& ctx)
override;
45 void saveSceneToFile(
const DesignerScene& scene,
const Path& filePath);
47 SdlDependencyResolver m_resolver;
48 FormattedTextOutputStream* m_fileStream;
Definition DesignerScene.h:58
Saving utility for designer scene. Writes .pds (Photon Designer Scene) file.
Definition DesignerSceneWriter.h:18
void saveResource(const ISdlResource *resource, const SdlOutputContext &ctx, SdlOutputClauses &clauses) override
Definition DesignerSceneWriter.cpp:55
void commandGenerated(std::string_view commandStr, const SdlOutputContext &ctx) override
Definition DesignerSceneWriter.cpp:73
void write(const DesignerScene &scene)
Writes the scene to the writer-specified destination.
Definition DesignerSceneWriter.cpp:85
bool beginCommand(const SdlClass *targetClass, SdlOutputContext *out_ctx) override
Definition DesignerSceneWriter.cpp:43
void endCommand() override
Definition DesignerSceneWriter.cpp:52
~DesignerSceneWriter() override
DesignerSceneWriter()
Definition DesignerSceneWriter.cpp:27
Definition ph_editor.h:10