public override void ExposeData() { base.ExposeData(); Scribe_Defs.Look <RulePackDef>(ref this.ruleDef, "ruleDef"); Scribe_Values.Look <bool>(ref this.alwaysShowInCompact, "alwaysShowInCompact", false, false); Scribe_References.Look <Pawn>(ref this.initiator, "initiator", true); Scribe_References.Look <Pawn>(ref this.recipientPawn, "recipientPawn", true); Scribe_Defs.Look <ThingDef>(ref this.recipientThing, "recipientThing"); Scribe_Defs.Look <ImplementOwnerTypeDef>(ref this.implementType, "implementType"); Scribe_Defs.Look <ThingDef>(ref this.ownerEquipmentDef, "ownerDef"); Scribe_Values.Look <string>(ref this.toolLabel, "toolLabel", null, false); if (Scribe.mode == LoadSaveMode.LoadingVars) { BackCompatibility.BattleLogEntry_MeleeCombat_LoadingVars(this); } }
public override void ExposeData() { base.ExposeData(); Scribe_Defs.Look(ref ruleDef, "ruleDef"); Scribe_Values.Look(ref alwaysShowInCompact, "alwaysShowInCompact", defaultValue: false); Scribe_References.Look(ref initiator, "initiator", saveDestroyedThings: true); Scribe_References.Look(ref recipientPawn, "recipientPawn", saveDestroyedThings: true); Scribe_Defs.Look(ref recipientThing, "recipientThing"); Scribe_Defs.Look(ref implementType, "implementType"); Scribe_Defs.Look(ref ownerEquipmentDef, "ownerDef"); Scribe_Values.Look(ref toolLabel, "toolLabel"); if (Scribe.mode == LoadSaveMode.LoadingVars) { BackCompatibility.BattleLogEntry_MeleeCombat_LoadingVars(this); } }