From 4e206fae5be6093b36c7779ba2a4a3679f0e754b Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 23 Nov 2023 01:47:18 +0000 Subject: something --- script.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 script.h (limited to 'script.h') diff --git a/script.h b/script.h new file mode 100644 index 0000000..fabf531 --- /dev/null +++ b/script.h @@ -0,0 +1,36 @@ +#ifndef SCRIPT_H +#define SCRIPT_H + +#include +#include +#include +#include +#include +#include + +class Script { + public: + Script() = default; + + Script(const std::filesystem::path& path, std::string_view file_prefix); + + const std::vector& loaded_scripts() const { + return loaded_scripts_; + } + + const std::vector>& exports() const { + return exports_; + } + + void ReplaceScriptReferences(const std::map& script_ids); + + std::string ToString() const; + + private: + std::string text_; + std::string file_prefix_; + std::vector loaded_scripts_; + std::vector> exports_; +}; + +#endif /* SCRIPT_H */ -- cgit 1.4.1