From a02c7589c6c9e902c59a632aa650635336fe648c Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 2 Apr 2025 20:46:41 -0400 Subject: pke: checkpoint: major serialization refactor --- src/serialization-component.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/serialization-component.hpp (limited to 'src/serialization-component.hpp') 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 */ -- cgit v1.2.3