internal static void Postfix(MechLabPanel __instance, MechComponentRef componentRef, MechLabItemSlotElement __result) { try { RefreshSlotElementHandler.Shared.RefreshSlotElement(__result, __instance); EnginePersistence.FixSimGameUID(__instance.sim, componentRef); } catch (Exception e) { Control.mod.Logger.LogError(e); } }
internal static void Postfix(this MechLabPanel __instance, MechComponentRef componentRef, MechLabItemSlotElement __result) { try { EngineCoreRefHandler.Shared.ModifySlotElement(__result, __instance); WeightSavingsHandler.Shared.ModifySlotElement(__result, __instance); EnginePersistence.FixSimGameUID(__instance.sim, componentRef); } catch (Exception e) { Control.mod.Logger.LogError(e); } }
public static void Prefix(MechLabPanel __instance, MechComponentRef componentRef) { try { if (!__instance.IsSimGame) { return; } EnginePersistence.FixSimGameUID(__instance.sim, componentRef); } catch (Exception e) { Control.mod.Logger.LogError(e); } }
public static void Prefix(MechBayPanel __instance, MechDef selectedMech) { try { if (!__instance.IsSimGame) { return; } EnginePersistence.FixSimGameUID(__instance.Sim, selectedMech); } catch (Exception e) { Control.mod.Logger.LogError(e); } }
public static void Prefix(MechBayPanel __instance, MechBayMechUnitElement mechElement) { try { if (!__instance.IsSimGame) { return; } if (mechElement == null || mechElement.MechDef == null) { return; } EnginePersistence.FixSimGameUID(__instance.Sim, mechElement.MechDef); } catch (Exception e) { Control.mod.Logger.LogError(e); } }