aboutsummaryrefslogtreecommitdiff
path: root/source/GameObject.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/GameObject.hpp')
-rw-r--r--source/GameObject.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/GameObject.hpp b/source/GameObject.hpp
index 8961d2a..77488b9 100644
--- a/source/GameObject.hpp
+++ b/source/GameObject.hpp
@@ -6,6 +6,7 @@
#include "Renderer.hpp"
#include "VertexIndex.hpp"
+#include <rapidjson/fwd.h>
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <span>
@@ -83,6 +84,11 @@ public:
virtual void Resleep();
virtual void Update();
+ static rapidjson::Value Serialize(GameObject* obj, rapidjson::Document& root);
+ static std::unique_ptr<GameObject> Deserialize(const rapidjson::Value& value, GameWorld* world);
+ virtual void ReadSaveFormat(const rapidjson::Value& value);
+ virtual void WriteSaveFormat(rapidjson::Value& value, rapidjson::Document& root);
+
protected:
void SetParent(GameObject* parent);
};