Example #1
0
        public World()
        {
            string generatorName = Server.ServerConfig.WorldGenerator.ToUpper();

            this.Generator = GeneratorManager.GetGenerator(generatorName);
            if (this.Generator == null)
            {
                this.Generator = GeneratorManager.GetGenerator("FLAT");
            }
        }
Example #2
0
        private World(string worldName, IWorldSaveFormat format)
        {
            this.Name   = worldName;
            this.Format = format;

            string generatorName = Server.Instance.ServerProperty.WorldGenerator.ToUpper();

            this.Generator = GeneratorManager.GetGenerator(generatorName);
            if (this.Generator == null)
            {
                this.Generator = GeneratorManager.GetGenerator("FLAT");
            }

            //this.Generator = GeneratorManager.GetGenerator("INFINITE");
        }