change entities marked for destroy list to a hashset

pull/5/head
Evan Hemsley 2019-07-14 20:43:24 -07:00
parent 0f44d6c544
commit 016e2c5612
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ namespace Encompass
{
private readonly Dictionary<Guid, Entity> IDToEntity = new Dictionary<Guid, Entity>();
private readonly List<Guid> entitiesMarkedForDestroy = new List<Guid>();
private readonly HashSet<Guid> entitiesMarkedForDestroy = new HashSet<Guid>();
private readonly Dictionary<Type, HashSet<IEntityTracker>> componentTypeToEntityTrackers = new Dictionary<Type, HashSet<IEntityTracker>>();
private readonly Dictionary<Guid, HashSet<IEntityTracker>> entityToEntityTrackers = new Dictionary<Guid, HashSet<IEntityTracker>>();