Esempio n. 1
0
        public MapGenerator(short width, short length, short height, MapGeneratorOptions options = null)
            : base(width, length, height)
        {
            GeneratedMap = new Map(width, length, height,
                                   (short)(width * -0.5d), (short)(length * -0.5d));
            Options = options == null ? new MapGeneratorOptions() : options;

            Random rand = new Random();

            FastNoise = new FastNoise(rand.Next(int.MinValue, int.MaxValue));
        }
Esempio n. 2
0
        public MapGenerator(short width, short length, short height, MapGeneratorOptions options = null)
            : base(width, length, height)
        {
            GeneratedMap = new Map(width, length, height,
                                   (short)(width * -0.5d), (short)(length * -0.5d), -20);
            Options = options == null ? new MapGeneratorOptions() : options;

            Random rand = new Random();

            FastNoise             = new FastNoise(rand.Next(int.MinValue, int.MaxValue));
            Stopwatch             = new Stopwatch();
            StopwatchFormatString = "%m'm '%s's '%fff'ms'";
        }