예제 #1
0
        public EntityManager(EntitySpawner entitySpawner, SimulationOwnership simulationOwnership)
        {
            this.simulationOwnership = simulationOwnership;

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