public override void WriteData(ESPWriter writer) { if (EditorID != null) { EditorID.WriteBinary(writer); } if (ObjectBounds != null) { ObjectBounds.WriteBinary(writer); } if (Name != null) { Name.WriteBinary(writer); } if (Model != null) { Model.WriteBinary(writer); } if (BaseStats != null) { BaseStats.WriteBinary(writer); } if (Factions != null) { Factions.Sort(); foreach (var item in Factions) { item.WriteBinary(writer); } } if (DeathItem != null) { DeathItem.WriteBinary(writer); } if (VoiceType != null) { VoiceType.WriteBinary(writer); } if (Template != null) { Template.WriteBinary(writer); } if (Race != null) { Race.WriteBinary(writer); } if (ActorEffects != null) { ActorEffects.Sort(); foreach (var item in ActorEffects) { item.WriteBinary(writer); } } if (UnarmedAttackEffect != null) { UnarmedAttackEffect.WriteBinary(writer); } if (UnarmedAttackAnimation != null) { UnarmedAttackAnimation.WriteBinary(writer); } if (Destructable != null) { Destructable.WriteBinary(writer); } if (Script != null) { Script.WriteBinary(writer); } if (Contents != null) { Contents.Sort(); foreach (var item in Contents) { item.WriteBinary(writer); } } if (AIData != null) { AIData.WriteBinary(writer); } if (Packages != null) { foreach (var item in Packages) { item.WriteBinary(writer); } } if (Class != null) { Class.WriteBinary(writer); } if (Data != null) { Data.WriteBinary(writer); } if (Skills != null) { Skills.WriteBinary(writer); } if (HeadParts != null) { HeadParts.Sort(); foreach (var item in HeadParts) { item.WriteBinary(writer); } } if (HairType != null) { HairType.WriteBinary(writer); } if (HairLength != null) { HairLength.WriteBinary(writer); } if (Eyes != null) { Eyes.WriteBinary(writer); } if (HairColor != null) { HairColor.WriteBinary(writer); } if (CombatStyle != null) { CombatStyle.WriteBinary(writer); } if (ImpactMaterialType != null) { ImpactMaterialType.WriteBinary(writer); } if (FaceGenGeometrySymmetric != null) { FaceGenGeometrySymmetric.WriteBinary(writer); } if (FaceGenGeometryAsymmetric != null) { FaceGenGeometryAsymmetric.WriteBinary(writer); } if (FaceGenTexture != null) { FaceGenTexture.WriteBinary(writer); } if (Unknown != null) { Unknown.WriteBinary(writer); } if (Height != null) { Height.WriteBinary(writer); } if (Weight != null) { Weight.WriteBinary(writer); } }
public override void WriteData(ESPWriter writer) { if (EditorID != null) { EditorID.WriteBinary(writer); } if (ObjectBounds != null) { ObjectBounds.WriteBinary(writer); } if (Name != null) { Name.WriteBinary(writer); } if (Model != null) { Model.WriteBinary(writer); } if (ActorEffects != null) { ActorEffects.Sort(); foreach (var item in ActorEffects) { item.WriteBinary(writer); } } if (UnarmedAttackEffect != null) { UnarmedAttackEffect.WriteBinary(writer); } if (UnarmedAttackAnimation != null) { UnarmedAttackAnimation.WriteBinary(writer); } if (Models != null) { Models.WriteBinary(writer); } if (TextureHashes != null) { TextureHashes.WriteBinary(writer); } if (BaseStats != null) { BaseStats.WriteBinary(writer); } if (Factions != null) { Factions.Sort(); foreach (var item in Factions) { item.WriteBinary(writer); } } if (DeathItem != null) { DeathItem.WriteBinary(writer); } if (VoiceType != null) { VoiceType.WriteBinary(writer); } if (Template != null) { Template.WriteBinary(writer); } if (Destructable != null) { Destructable.WriteBinary(writer); } if (Script != null) { Script.WriteBinary(writer); } if (Contents != null) { Contents.Sort(); foreach (var item in Contents) { item.WriteBinary(writer); } } if (AIData != null) { AIData.WriteBinary(writer); } if (Packages != null) { foreach (var item in Packages) { item.WriteBinary(writer); } } if (Animations != null) { Animations.WriteBinary(writer); } if (Data != null) { Data.WriteBinary(writer); } if (AttackReach != null) { AttackReach.WriteBinary(writer); } if (CombatStyle != null) { CombatStyle.WriteBinary(writer); } if (BodyPartData != null) { BodyPartData.WriteBinary(writer); } if (TurningSpeed != null) { TurningSpeed.WriteBinary(writer); } if (BaseScale != null) { BaseScale.WriteBinary(writer); } if (FootWeight != null) { FootWeight.WriteBinary(writer); } if (ImpactMaterialType != null) { ImpactMaterialType.WriteBinary(writer); } if (SoundLevel != null) { SoundLevel.WriteBinary(writer); } if (SoundTemplate != null) { SoundTemplate.WriteBinary(writer); } if (SoundData != null) { foreach (var item in SoundData) { item.WriteBinary(writer); } } if (ImpactDataset != null) { ImpactDataset.WriteBinary(writer); } if (MeleeWeaponList != null) { MeleeWeaponList.WriteBinary(writer); } }