summaryrefslogtreecommitdiff
path: root/src/serialization-component.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-04-02 20:46:41 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-04-02 20:46:41 -0400
commita02c7589c6c9e902c59a632aa650635336fe648c (patch)
tree8ec4800ff9f9effbd9141e02131123448679bc93 /src/serialization-component.hpp
parentfad302f7db146a78900f9b21dbbcd97761093c1b (diff)
pke: checkpoint: major serialization refactor
Diffstat (limited to 'src/serialization-component.hpp')
-rw-r--r--src/serialization-component.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/serialization-component.hpp b/src/serialization-component.hpp
new file mode 100644
index 0000000..a01d235
--- /dev/null
+++ b/src/serialization-component.hpp
@@ -0,0 +1,15 @@
+#ifndef PKE_SERIALIZATION_COMPONENT_HPP
+#define PKE_SERIALIZATION_COMPONENT_HPP
+
+#include "components.hpp"
+#include "serialization.hpp"
+
+#include "vendor-glm-include.hpp"
+
+bool pke_serialize_inst_pos(srlztn_serialize_helper *h, const glm::vec3 pos, const glm::quat quat_rot, const glm::vec3 scale);
+bool pke_deserialize_inst_pos(srlztn_deserialize_helper *h, glm::vec3 &pos, glm::quat &quat_rot, glm::vec3 &scale);
+
+bool pke_serialize_instance(srlztn_serialize_helper *h, const CompInstance *comp);
+bool pke_deserialize_instance(srlztn_deserialize_helper *h);
+
+#endif /* PKE_SERIALIZATION_COMPONENT_HPP */