Ejemplo n.º 1
0
        public static void GetCellTypeByPosition(
            eCellType[] fieldMatrix,
            Position position,
            out eCellType cellType)
        {
            byte offset = 0;

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

            Lookups.PositionToOffset(position, ref offset);
            fieldMatrix[offset] = cellType;
        }