summaryrefslogtreecommitdiff
path: root/src/serialization.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-05-09 20:40:56 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-05-09 20:40:56 -0400
commitecf91229fb5c9150f2d60d97652bf0024a5c3435 (patch)
treed8fcffa8d436222c4304d9f4d538165ddd734055 /src/serialization.hpp
parent9693ff2d4be85d356e07e3192baaa2262a7140ff (diff)
pke-test-serialization: add more complex tests
Diffstat (limited to 'src/serialization.hpp')
-rw-r--r--src/serialization.hpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/serialization.hpp b/src/serialization.hpp
index 3b74428..93fd92a 100644
--- a/src/serialization.hpp
+++ b/src/serialization.hpp
@@ -19,13 +19,13 @@ iccsc SRLZTN_MULTILINE_END = ":MULTILINE_END:";
iccsc SRLZTN_CHILD_ID = "ChildId:";
iccsc SRLZTN_OBJ_END = "";
-iccsc SRLZTN_OBJ_INSTANCE_POSITION = "InstPos:";
-iccsc SRLZTN_OBJ_INSTANCE = "Instance:";
-iccsc SRLZTN_OBJ_CAMERA = "Camera:";
-iccsc SRLZTN_OBJ_UI_BOX = "UIBox:";
-iccsc SRLZTN_OBJ_FONT_RENDER = "FontRender:";
-iccsc SRLZTN_OBJ_FONT_RENDER_SETTINGS = "FontRenderSettings:";
-iccsc SRLZTN_OBJ_UI_BOX_TYPE_DATA = "UIBoxTypeData:";
+iccsc SRLZTN_OBJ_INSTANCE_POSITION = "InstPos";
+iccsc SRLZTN_OBJ_INSTANCE = "Instance";
+iccsc SRLZTN_OBJ_CAMERA = "Camera";
+iccsc SRLZTN_OBJ_UI_BOX = "UIBox";
+iccsc SRLZTN_OBJ_FONT_RENDER = "FontRender";
+iccsc SRLZTN_OBJ_FONT_RENDER_SETTINGS = "FontRenderSettings";
+iccsc SRLZTN_OBJ_UI_BOX_TYPE_DATA = "UIBoxTypeData";
iccsc SRLZTN_POSROT_POS = "Position:";
iccsc SRLZTN_POSROT_ROT = "Rotation:";
@@ -78,17 +78,13 @@ struct srlztn_instance_mapping {
struct srlztn_serialize_helper {
pk_membucket *bkt;
- // std::ostringstream o;
pk_arr_t<pke_kve_container> kvp_containers;
pk_handle handle_head;
};
struct srlztn_deserialize_helper {
pk_membucket *bkt;
- // std::istream *i;
- // size_t read_line_len = 256;
pke_scene *scene;
- // char *read_line;
pk_arr_t<srlztn_instance_mapping> mapping;
pk_arr_t<pke_kve_container> kvp_containers;
};