diff options
Diffstat (limited to 'src/serialization-component.hpp')
| -rw-r--r-- | src/serialization-component.hpp | 15 |
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 */ |
