From 32968050f0b34fdabfcc2a4fb5601d4be361bbd2 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 6 May 2025 13:12:24 -0400 Subject: pke: major serialization refactor, first-pass --- src/serialization-component.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/serialization-component.hpp') diff --git a/src/serialization-component.hpp b/src/serialization-component.hpp index a01d235..7020479 100644 --- a/src/serialization-component.hpp +++ b/src/serialization-component.hpp @@ -6,10 +6,10 @@ #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); +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); -bool pke_serialize_instance(srlztn_serialize_helper *h, const CompInstance *comp); -bool pke_deserialize_instance(srlztn_deserialize_helper *h); +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 */ -- cgit v1.2.3