public static bool AdjacentTo8WayOrInside(this IntVec3 me, LocalTargetInfo other) { if (other.HasThing) { return(me.AdjacentTo8WayOrInside(other.Thing)); } return(me.AdjacentTo8WayOrInside(other.Cell)); }
public static bool AdjacentTo8WayOrInside(this IntVec3 root, Thing t) { return(root.AdjacentTo8WayOrInside(t.Position, t.Rotation, t.def.size)); }