コード例 #1
0
ファイル: BoardManager.cs プロジェクト: mdiehr/OnePawnArmy
 private void RaiseOnBoardLoaded(BoardDef board)
 {
     if (OnBoardLoaded != null)
     {
         OnBoardLoaded(board);
     }
 }
コード例 #2
0
ファイル: Board.cs プロジェクト: mdiehr/OnePawnArmy
 public void ShowLevel(BoardDef boardDef)
 {
     ClearMovableTiles();
     for (int x = 0; x < boardDef.w; ++x)
     {
         for (int y = 0; y < boardDef.h; ++y)
         {
             CreateMovableTile(x, y, boardDef.GetTile(x, y));
         }
     }
 }
コード例 #3
0
ファイル: BoardManager.cs プロジェクト: mdiehr/OnePawnArmy
 void OnLevelLoaded(LevelDef level)
 {
     _boardDef = level.board;
     // Raise an event for the board inside this level. This is a useful indirection because the undo system will use boards.
     RaiseOnBoardLoaded(level.board);
 }
コード例 #4
0
ファイル: Board.cs プロジェクト: mdiehr/OnePawnArmy
 private void OnBoardLoaded(BoardDef boardDef)
 {
     ShowLevel(boardDef);
 }