Need to rework origins

This commit is contained in:
Confideo-IOM
2026-09-23 22:29:31 +01:00
parent 94a2bb508e
commit 6015f0bc71
50 changed files with 506 additions and 1067 deletions
@@ -63,6 +63,10 @@ class HydraComponentArray : public IHydraComponentArray, HydraObject
void AddComponent(HydraID entity_id, T component)
{
std::lock_guard<std::mutex> lock(m_mutex);
if(m_entity_to_component.find(entity_id) != m_entity_to_component.end())
{
std::cout << "HERE";
}
assert(m_entity_to_component.find(entity_id) == m_entity_to_component.end() && "Trying to add a component that already exist");
m_components[m_component_count] = component;
m_entity_to_component.insert({entity_id, m_component_count});