示例#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;
 }