public NSObject Copy (NSZone zone) { var board = new Board (); board.SetGameModel (this); return board; }
void ResetBoard () { board = new Board (); foreach (UIButton button in columnButtons) UpdateButton (button); UpdateUI (); strategist.GameModel = board; foreach (var innerArray in chipLayers) { for (int j = 0; j < innerArray.Length; j++) innerArray [j]?.RemoveFromSuperLayer (); Array.Clear (innerArray, 0, innerArray.Length); } }
void UpdateChipsFromBoard (Board otherBoard) { Array.Copy (otherBoard.Cells, Cells, Cells.Length); }
void UpdateChipsFromBoard (Board otherBoard) { Cells = otherBoard.Cells; }