Ejemplo n.º 1
0
        public static bool IsAdjacentToCardinalOrInside(this IntVec3 me, CellRect other)
        {
            if (other.IsEmpty)
            {
                return(false);
            }
            CellRect cellRect = other.ExpandedBy(1);

            return(cellRect.Contains(me) && !cellRect.IsCorner(me));
        }