internal long age = 6549; //TODO implement world age internal World(String Name, WorldGeneratorType type) { TimeCreated = Server.TimeTicks; this.Name = Name; chunkManager = new ChunkManager(this, type); Spawn = new BlockLocation(0, 34, 0, this); Server.worlds.Add(this); }
internal ChunkManager(World w, WorldGeneratorType type) { world = w; switch (type) { case WorldGeneratorType.Flat: Generator = new FlatWorldGenerator(world); break; case WorldGeneratorType.FlatOre: Generator = new FlatOreWorldGenerator(world); break; } LoadStartingChunks(); }