Пример #1
0
        public static UndoableMapModel CreateMap(int width, int height)
        {
            var map = new MapModel(width, height);

            GridMethods.Fill(map.Tile.TileGrid, Globals.DefaultTile);
            return(new UndoableMapModel(map, null, false));
        }
Пример #2
0
 public void Execute()
 {
     this.oldContents = new Grid <T>(this.width, this.height);
     GridMethods.Copy(this.target, this.oldContents, this.x, this.y, 0, 0, this.width, this.height);
     GridMethods.Fill(this.target, this.x, this.y, this.width, this.height, this.fillValue);
 }