public MapGenerator(MapGeneratorInput input)
 {
     _input   = input;
     _byteMap = new byte[_input.Width, _input.Height];
     _rand    = new Random(unchecked ((int)DateTime.Now.Ticks));
     fBm      = new FractionalBrownianMotion(_input.Width, _input.Height, _input.H);
 }
 public MapGenerator(int width, int height, double fillRate, int fillAlgorithm, double h)
 {
     _input   = new MapGeneratorInput(width, height, fillRate, fillAlgorithm, h);
     _byteMap = new byte[_input.Width, _input.Height];
     _rand    = new Random(unchecked ((int)DateTime.Now.Ticks));
     fBm      = new FractionalBrownianMotion(_input.Width, _input.Height, _input.H);
 }
 public MapGenerator(int width, int height, double fillRate)
 {
     _input   = new MapGeneratorInput(width, height, fillRate);
     _byteMap = new byte[_input.Width][];
     for (int i = 0; i < _input.Width; i++)
     {
         _byteMap[i] = new byte[_input.Height];
     }
     _rand = new Random(unchecked ((int)DateTime.Now.Ticks));
     fBm   = new FractionalBrownianMotion(_input.Width, _input.Height, _input.H);
 }