slight component manager optimization

pull/5/head
Evan Hemsley 2019-12-29 01:48:38 -08:00
parent 28f2ba969a
commit a2d29a6591
1 changed files with 0 additions and 2 deletions

View File

@ -30,7 +30,6 @@ namespace Encompass
{ {
existingComponentStore.ClearAll(); existingComponentStore.ClearAll();
immediateComponentStore.ClearAll(); immediateComponentStore.ClearAll();
UpToDateComponentStore.ClearAll();
} }
internal void SetStartingComponentStore(ComponentStore componentStore) internal void SetStartingComponentStore(ComponentStore componentStore)
@ -41,7 +40,6 @@ namespace Encompass
internal void AddExistingComponent<TComponent>(Entity entity, TComponent component) where TComponent : struct, IComponent internal void AddExistingComponent<TComponent>(Entity entity, TComponent component) where TComponent : struct, IComponent
{ {
existingComponentStore.Set(entity.ID, component); existingComponentStore.Set(entity.ID, component);
UpToDateComponentStore.Set(entity.ID, component);
} }
internal bool AddImmediateComponent<TComponent>(Entity entity, TComponent component, int priority) where TComponent : struct, IComponent internal bool AddImmediateComponent<TComponent>(Entity entity, TComponent component, int priority) where TComponent : struct, IComponent