diff --git a/SDK/include/NDK/World.hpp b/SDK/include/NDK/World.hpp index c59cc9694..c82565c8e 100644 --- a/SDK/include/NDK/World.hpp +++ b/SDK/include/NDK/World.hpp @@ -58,8 +58,8 @@ namespace Ndk void Update(); private: - void MarkAllAsDirty(); - void MarkAsDirty(EntityId id); + void Invalidate(); + void Invalidate(EntityId id); struct EntityBlock { diff --git a/SDK/include/NDK/World.inl b/SDK/include/NDK/World.inl index 6bb51c2ae..4cb985b28 100644 --- a/SDK/include/NDK/World.inl +++ b/SDK/include/NDK/World.inl @@ -21,7 +21,7 @@ namespace Ndk m_systems[index] = std::move(system); m_systems[index]->SetWorld(*this); - MarkAllAsDirty(); // On force une mise à jour de toutes les entités + Invalidate(); // On force une mise à jour de toutes les entités return *m_systems[index].get(); } @@ -124,13 +124,13 @@ namespace Ndk RemoveSystem(index); } - inline void World::MarkAllAsDirty() + inline void World::Invalidate() { m_dirtyEntities.Resize(m_entities.size(), false); m_dirtyEntities.Set(true); // Activation de tous les bits } - inline void World::MarkAsDirty(EntityId id) + inline void World::Invalidate(EntityId id) { m_dirtyEntities.UnboundedSet(id, true); } diff --git a/SDK/src/NDK/Entity.cpp b/SDK/src/NDK/Entity.cpp index c911dbf65..f7074c9b8 100644 --- a/SDK/src/NDK/Entity.cpp +++ b/SDK/src/NDK/Entity.cpp @@ -38,7 +38,7 @@ namespace Ndk m_componentBits.UnboundedSet(index); // On informe le monde que nous avons besoin d'une mise à jour - m_world->MarkAsDirty(m_id); + m_world->Invalidate(m_id); return *m_components[index].get(); } @@ -64,7 +64,7 @@ namespace Ndk m_componentBits.Clear(); // On informe le monde que nous avons besoin d'une mise à jour - m_world->MarkAsDirty(m_id); + m_world->Invalidate(m_id); } void Entity::RemoveComponent(ComponentIndex index) @@ -76,7 +76,7 @@ namespace Ndk m_componentBits.Reset(index); // On informe le monde que nous avons besoin d'une mise à jour - m_world->MarkAsDirty(m_id); + m_world->Invalidate(m_id); } }