public override void WriteData(ESPWriter writer) { if (EditorID != null) { EditorID.WriteBinary(writer); } if (Data != null) { Data.WriteBinary(writer); } if (Location1 != null) { Location1.WriteBinary(writer); } if (Location2 != null) { Location2.WriteBinary(writer); } if (Schedule != null) { Schedule.WriteBinary(writer); } if (Target1 != null) { Target1.WriteBinary(writer); } if (Conditions != null) { foreach (var item in Conditions) { item.WriteBinary(writer); } } if (IdleFlags != null) { IdleFlags.WriteBinary(writer); } if (IdleCount != null) { IdleCount.WriteBinary(writer); } if (IdleTimerSetting != null) { IdleTimerSetting.WriteBinary(writer); } if (IdleAnimations != null) { IdleAnimations.WriteBinary(writer); } if (Unused != null) { Unused.WriteBinary(writer); } if (CombatStyle != null) { CombatStyle.WriteBinary(writer); } if (EatMarker != null) { EatMarker.WriteBinary(writer); } if (EscortDistance != null) { EscortDistance.WriteBinary(writer); } if (FollowDistance_StartLocation_TriggerRadius != null) { FollowDistance_StartLocation_TriggerRadius.WriteBinary(writer); } if (PatrolIsRepeatable != null) { PatrolIsRepeatable.WriteBinary(writer); } if (UseWeaponData != null) { UseWeaponData.WriteBinary(writer); } if (Target2 != null) { Target2.WriteBinary(writer); } if (UseItemMarker != null) { UseItemMarker.WriteBinary(writer); } if (AmbushMarker != null) { AmbushMarker.WriteBinary(writer); } if (DialogData != null) { DialogData.WriteBinary(writer); } WriteDummyIgnore(writer); if (OnBegin != null) { OnBegin.WriteBinary(writer); } if (OnEnd != null) { OnEnd.WriteBinary(writer); } if (OnChange != null) { OnChange.WriteBinary(writer); } }