예제 #1
0
 HexLinePositionInfo(HexLinePositionInfoType type, int position, int cellPosition)
 {
     Type         = type;
     Position     = position;
     CellPosition = cellPosition;
     Cell         = null;
 }
예제 #2
0
		HexLinePositionInfo(HexLinePositionInfoType type, int position, HexCell cell) {
			Type = type;
			Position = position;
			CellPosition = position - cell.CellSpan.Start;
			if (CellPosition < 0)
				throw new ArgumentOutOfRangeException(nameof(position));
			Cell = cell;
		}
예제 #3
0
 HexLinePositionInfo(HexLinePositionInfoType type, int position, HexCell cell)
 {
     Type         = type;
     Position     = position;
     CellPosition = position - cell.CellSpan.Start;
     if (CellPosition < 0)
     {
         throw new ArgumentOutOfRangeException(nameof(position));
     }
     Cell = cell;
 }
예제 #4
0
		HexLinePositionInfo(HexLinePositionInfoType type, int position, int cellPosition) {
			Type = type;
			Position = position;
			CellPosition = cellPosition;
			Cell = null;
		}