summaryrefslogtreecommitdiff
path: root/src/serialization-component.hpp
blob: 7020479c513ae576ab1147c7119971acd0ff21e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef PKE_SERIALIZATION_COMPONENT_HPP
#define PKE_SERIALIZATION_COMPONENT_HPP

#include "components.hpp"
#include "serialization.hpp"

#include "vendor-glm-include.hpp"

pk_handle pke_serialize_inst_pos(srlztn_serialize_helper *h, const glm::vec3 pos, const glm::quat quat_rot, const glm::vec3 scale);
void pke_deserialize_inst_pos(srlztn_deserialize_helper *h, pke_kve_container *kvec, glm::vec3 &pos, glm::quat &quat_rot, glm::vec3 &scale);

pk_handle pke_serialize_instance(srlztn_serialize_helper *h, const CompInstance *comp);
void pke_deserialize_instance(srlztn_deserialize_helper *h, pke_kve_container *kvec);

#endif /* PKE_SERIALIZATION_COMPONENT_HPP */