public static void Postfix(Designation __instance)
 {
     if (__instance.def == MoveBaseDefOf.MoveBase && __instance.target.Thing != null)
     {
         DesignatorMoveBase.Notify_Removing_Callback(__instance.target.Thing);
         InstallBlueprintUtility.CancelBlueprintsFor(__instance.target.Thing);
     }
 }
Exemple #2
0
 public static void DesignateThingPrefix(Designator __instance, Thing t)
 {
     if (__instance is Designator_Cancel cancel)
     {
         if (t.MapHeld.designationManager.DesignationOn(t, MoveBaseDefOf.MoveBase) != null)
         {
             DesignatorMoveBase.Notify_Removing_Callback(t);
             InstallBlueprintUtility.CancelBlueprintsFor(t);
         }
     }
 }
Exemple #3
0
 public static void DesignateSingleCellPrefix(Designator __instance, IntVec3 c)
 {
     if (__instance is Designator_Cancel cancel)
     {
         foreach (Thing thing in c.GetThingList(__instance.Map))
         {
             if (thing.MapHeld.designationManager.DesignationOn(thing, MoveBaseDefOf.MoveBase) != null)
             {
                 DesignatorMoveBase.Notify_Removing_Callback(thing);
                 InstallBlueprintUtility.CancelBlueprintsFor(thing);
             }
         }
     }
 }