public EntityManager(EntitySpawner entitySpawner, SimulationOwnership simulationOwnership) { this.simulationOwnership = simulationOwnership; entitiesByAbsoluteCell = entitySpawner.GetEntitiesByAbsoluteCell(); entitiesByGuid = entitiesByAbsoluteCell.Values.SelectMany(l => l).ToDictionary(e => e.Guid, e => e); }
public EntityManager(EntitySpawner entitySpawner, SimulationOwnership simulationOwnership) { this.entitySpawner = entitySpawner; this.simulationOwnership = simulationOwnership; }