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(); }
public override Vector3 GetSpawnPoint() { return(_generator.GetSpawnPoint()); }