Minor - Implements component serialization - V12.9.0
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.
This commit is contained in:
@@ -124,6 +124,14 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all components of the entity.
|
||||
* @return A constant reference to the map of components.
|
||||
*/
|
||||
const std::unordered_map<ComponentTypeID, ComponentPtr>& GetAllComponents() const {
|
||||
return m_Components;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user