public override void WriteBinary(ESPWriter writer) { Marker.WriteBinary(writer); if (Unknown1 != null) { Unknown1.WriteBinary(writer); } if (AudioLocation != null) { AudioLocation.WriteBinary(writer); } if (Unknown2 != null) { Unknown2.WriteBinary(writer); } if (Unknown3 != null) { Unknown3.WriteBinary(writer); } if (Unknown4 != null) { Unknown4.WriteBinary(writer); } }
public override void WriteData(ESPWriter writer) { if (EditorID != null) { EditorID.WriteBinary(writer); } if (Name != null) { Name.WriteBinary(writer); } if (Unknown1 != null) { Unknown1.WriteBinary(writer); } if (Unknown2 != null) { Unknown2.WriteBinary(writer); } if (Unknown3 != null) { Unknown3.WriteBinary(writer); } if (LocationDelay != null) { LocationDelay.WriteBinary(writer); } if (DayStart != null) { DayStart.WriteBinary(writer); } if (NightStart != null) { NightStart.WriteBinary(writer); } if (RetriggerDelay != null) { RetriggerDelay.WriteBinary(writer); } if (MediaSetsNeutral != null) { MediaSetsNeutral.Sort(); foreach (var item in MediaSetsNeutral) { item.WriteBinary(writer); } } if (MediaSetsAlly != null) { MediaSetsAlly.Sort(); foreach (var item in MediaSetsAlly) { item.WriteBinary(writer); } } if (MediaSetsFriend != null) { MediaSetsFriend.Sort(); foreach (var item in MediaSetsFriend) { item.WriteBinary(writer); } } if (MediaSetsEnemy != null) { MediaSetsEnemy.Sort(); foreach (var item in MediaSetsEnemy) { item.WriteBinary(writer); } } if (MediaSetsLocation != null) { MediaSetsLocation.Sort(); foreach (var item in MediaSetsLocation) { item.WriteBinary(writer); } } if (MediaSetsBattle != null) { MediaSetsBattle.Sort(); foreach (var item in MediaSetsBattle) { item.WriteBinary(writer); } } if (ConditionalFaction != null) { ConditionalFaction.WriteBinary(writer); } if (Unknown4 != null) { Unknown4.WriteBinary(writer); } }