Point lights

This commit is contained in:
Confideo-IOM
2026-08-28 16:36:25 +01:00
parent 30538ae7ab
commit e3d37e3f8a
60 changed files with 458 additions and 184 deletions
+10 -1
View File
@@ -59,7 +59,7 @@ public:
{
// Remove the component from the entity
m_component_manager->RemoveComponent<T>(entity_id);
std::string(typeid(T).name());
// Get the current signature, remove the component from it and update
auto signature = m_entity_manager->GetSignature(entity_id);
signature.set(m_component_manager->GetComponentTypeID<T>(), false);
@@ -79,6 +79,11 @@ public:
{
return m_component_manager->GetComponent<T>(entity_id);
}
template <typename T>
T &GetComponents()
{
return m_component_manager->GetComponents<T>();
}
template <typename T>
std::shared_ptr<T> RegisterSystem()
@@ -100,6 +105,10 @@ public:
{
m_system_manager->InitialiseComponents();
}
void DeleteComponents()
{
m_system_manager->DeleteComponents();
}
};
#endif /* HYDRAECS */