Point lights
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user