From 25e7d97b71e3f716c82b980e9fcb65639d4723b5 Mon Sep 17 00:00:00 2001 From: CatChow0 Date: Sat, 6 Sep 2025 14:18:28 +0200 Subject: [PATCH] Implements component serialization Adds serialization and deserialization functionality to the ECS component system. This allows components to be saved and loaded, enabling scene persistence. The IdentityComponent is updated to support serialization/deserialization. The scene saving logic in scene_manager is updated to serialize components instead of hardcoded values. --- .../.idea/workspace.xml | 21 +- enginecustom/imgui.ini | 10 +- enginecustom/src/inc/system/ecs/component.h | 15 +- .../ecs/components/identity_component.h | 46 ++++ enginecustom/src/inc/system/ecs/entity.h | 8 + enginecustom/src/src/system/scene_manager.cpp | 201 ++++++++++-------- 6 files changed, 190 insertions(+), 111 deletions(-) diff --git a/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml b/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml index 8745a33..6cf7b6f 100644 --- a/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml +++ b/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml @@ -5,16 +5,11 @@ - - - - - - - - - - + + + + + @@ -242,6 +237,10 @@ + + + +