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)); }
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); }