static void Prefix(LancePreviewPanel __instance, LanceDef lanceToSave) { Logger.M.TWL(0, "LancePreviewPanel.SaveLance", true); Logger.M.WL(0, lanceToSave.ToJSON(), true); }
static void Postfix(LanceConfiguratorPanel __instance, string lanceId, ref LanceDef __result) { LanceLoadoutSlot[] loadoutSlots = (LanceLoadoutSlot[])AccessTools.Field(typeof(LanceConfiguratorPanel), "loadoutSlots").GetValue(__instance); Logger.M.TWL(0, "LanceConfiguratorPanel.CreateLanceDef result:", true); Logger.M.WL(0, __result.ToJSON()); }