Example #1
0
 public static bool prefix_designate_single_cell(IntVec3 c, Designator_AreaHome __instance)
 {
     if (use_native)
     {
         return(true);
     }
     else
     {
         parrot_designate_single_cell(c, __instance.GetType());
         return(false);
     }
 }
Example #2
0
 public static void parrot_designate_single_cell(IntVec3 c, System.Type t)
 {
     use_native = true;
     try
     {
         Designator_AreaHome _z = (Designator_AreaHome)typeof(DesignatorUtility).GetMethod(nameof(DesignatorUtility.FindAllowedDesignator)).MakeGenericMethod(t).Invoke(null, null);
         _z.DesignateSingleCell(c);
     }
     finally
     {
         use_native = false;
     }
 }