public Board CreateHiddenBoard(Point mapSize, Point centerPoint) { lock (this) { Board newBoard = new Board(mapSize, centerPoint, this, null, ItemTypes.None, ItemTypes.None); newBoard.CreateMapLayers(); return(newBoard); } }
public Board CreateBoard(Microsoft.Xna.Framework.Point mapSize, Point centerPoint, System.Windows.Controls.ContextMenu menu) { lock (this) { Board newBoard = new Board(mapSize, centerPoint, this, menu, ApplicationSettings.theoreticalVisibleTypes, ApplicationSettings.theoreticalEditedTypes); boards.Add(newBoard); newBoard.CreateMapLayers(); return(newBoard); } }