21 ScriptComponent(
const std::string t_FilePath);
24 ScriptComponent() =
default;
29 ~ScriptComponent() =
default;
36 inline File* GetScriptFile() {
return m_ScriptFile; }
38 template<
class Archive>
39 void save(Archive& t_Archive)
const;
41 template<
class Archive>
42 void load(Archive& t_Archive);
47 File* m_ScriptFile =
nullptr;
51 template<
class Archive>
52 inline void ScriptComponent::save(Archive& t_Archive)
const 54 std::string ScriptPath =
"INVALID_LUA_PATH";
58 ScriptPath = m_ScriptFile->GetGuidString();
62 cereal::make_nvp(
"SCRIPT_PATH", ScriptPath)
66 template<
class Archive>
67 inline void ScriptComponent::load(Archive& t_Archive)
69 std::string ScriptPath =
"";
72 cereal::make_nvp(
"SCRIPT_PATH", ScriptPath)
#define HS(str)
Definition: FlingTypes.h:21
static std::shared_ptr< Fling::File > Create(Guid t_ID)
Definition: File.cpp:7