示例#1
0
 public static void Postfix(StatCollection ___companyStats)
 {
     try
     {
         MechDefAutoFixFacade.InitCompanyStats(___companyStats);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }
 public static void Prefix(SimGameState __instance)
 {
     try
     {
         MechDefAutoFixFacade.PostProcessAfterLoading(__instance.DataManager);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }
示例#3
0
 public static void Prefix(SkirmishMechBayPanel __instance)
 {
     try
     {
         MechDefAutoFixFacade.PostProcessAfterLoading(__instance.dataManager);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }
示例#4
0
 public static void Prefix(SkirmishSettings_Beta __instance, UIManager ___uiManager)
 {
     try
     {
         MechDefAutoFixFacade.PostProcessAfterLoading(___uiManager.dataManager);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }
 public static void Postfix(StatCollection ___companyStats, Dictionary <int, MechDef> ___ActiveMechs, Dictionary <int, MechDef> ___ReadyingMechs)
 {
     try
     {
         var mechs = new List <MechDef>();
         mechs.AddRange(___ActiveMechs.Values);
         mechs.AddRange(___ReadyingMechs.Values);
         MechDefAutoFixFacade.Rehydrate(___companyStats, mechs);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }