Exemplo n.º 1
0
 void SafeNeighborAdd(TileUpdate Tile, TileUpdate.Neighbors Neighbor, int index, int endex)
 {
     if (index >= 0 && index < Width && endex >= 0 && endex < Height)
     {
         Tile.AssignTile(Neighbor, Tiles[index, endex]);
     }
     else
     {
         Tile.AssignTile(Neighbor, null);
     }
 }