public static void GetCellTypeByPosition( eCellType[] fieldMatrix, Position position, out eCellType cellType) { byte offset = 0; Lookups.PositionToOffset(position, ref offset); cellType = fieldMatrix[offset]; }
public static void SetCellTypeByPosition( eCellType[] fieldMatrix, Position position, eCellType cellType) { byte offset = 0; Lookups.PositionToOffset(position, ref offset); fieldMatrix[offset] = cellType; }