From 4e206fae5be6093b36c7779ba2a4a3679f0e754b Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 23 Nov 2023 01:47:18 +0000 Subject: something --- scene.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 scene.h (limited to 'scene.h') diff --git a/scene.h b/scene.h new file mode 100644 index 0000000..0ee9450 --- /dev/null +++ b/scene.h @@ -0,0 +1,34 @@ +#ifndef SCENE_H +#define SCENE_H + +#include +#include +#include +#include + +#include "heading.h" +#include "script.h" + +class Scene { + public: + explicit Scene(const std::filesystem::path& path); + + const std::map& ext_resources() const { return ext_resources_; } + + int AddSubResource(const Script& script); + + void RemoveExtResource(int id); + + void ReplaceScriptReferences(int ext_id, int sub_id); + + std::string ToString() const; + + private: + Heading file_descriptor_; + std::map ext_resources_; + std::map> sub_resources_; + std::vector> other_; + int next_sub_id_ = 0; +}; + +#endif /* SCENE_H */ -- cgit 1.4.1