12class SceneDescription;
30 const Path& sceneFile,
31 const Path& sceneWorkingDirectory);
59 std::string_view resourceName,
64 std::string_view resourceName,
71 std::string_view resourceName,
75 std::string_view executorName,
86 std::string_view packetName,
Interface for all SDL resource.
Definition ISdlResource.h:22
General path representation. Does not check whether the target actually exists (e....
Definition Path.h:21
Data that describe a scene. Represents the result of running SDL commands.
Definition SceneDescription.h:14
Definition SdlCommandParser.h:32
Definition SdlDataPacketCollection.h:14
Data that SDL input process can rely on.
Definition SdlInputContext.h:19
Loading utility for renderer scene. Loads .p2 (Photon-v2) file.
Definition SdlSceneFileReader.h:18
bool beginCommand(ESdlCommandType commandType, const SdlClass *targetClass, SdlInputContext *out_ctx) override
Called when the parser starts processing a command.
Definition SdlSceneFileReader.cpp:47
void commandVersionSet(const SemanticVersion &version, const SdlInputContext &ctx) override
Definition SdlSceneFileReader.cpp:161
void storeNamedDataPacket(std::string_view packetName, const SdlInputClauses &packet, const SdlInputContext &ctx) override
Definition SdlSceneFileReader.cpp:166
ISdlResource * createResource(std::string_view resourceName, const SdlInputContext &ctx, ESdlCommandType commandType) override
Definition SdlSceneFileReader.cpp:61
ISdlResource * getResource(std::string_view resourceName, const SdlInputContext &ctx) override
Definition SdlSceneFileReader.cpp:126
void setScene(SceneDescription *scene)
Definition SdlSceneFileReader.cpp:237
void initResource(std::string_view resourceName, ISdlResource *resource, const SdlInputContext &ctx, SdlInputClauses &clauses, ESdlCommandType commandType) override
Definition SdlSceneFileReader.cpp:105
void endCommand() override
Called when the parser finishes processing a command.
Definition SdlSceneFileReader.cpp:58
void setSceneFile(Path sceneFile)
Definition SdlSceneFileReader.cpp:232
void read(SceneDescription *scene=nullptr)
Definition SdlSceneFileReader.cpp:174
SdlSceneFileReader()
Definition SdlSceneFileReader.cpp:22
~SdlSceneFileReader() override
void runExecutor(std::string_view executorName, const SdlInputContext &ctx, ISdlResource *targetResource, SdlInputClauses &clauses, ESdlCommandType commandType) override
Called when an executor command has been processed and is ready to run.
Definition SdlSceneFileReader.cpp:140
Convenient software version handling routines. See https://semver.org/ for a detailed explaination of...
Definition SemanticVersion.h:16
The root for all renderer implementations.
Definition EEngineProject.h:6
std::span< const T, EXTENT > TSpanView
Same as TSpan, except that the objects are const-qualified. Note that for pointer types,...
Definition TSpan.h:19
ESdlCommandType
Definition SdlCommandParser.h:20