Пример #1
0
        public Level(string name, IWorldGenerator worldGenerator)
        {
            Name           = name;
            WorldGenerator = worldGenerator;
            EntityManager  = new EntityManager();
            Players        = new ConcurrentDictionary <int, Player>();
            Entities       = new ConcurrentDictionary <int, Entity>();

            SpawnPoint = worldGenerator.GetSpawnPoint();
        }
Пример #2
0
 public override Vector3 GetSpawnPoint()
 {
     return(_generator.GetSpawnPoint());
 }