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