Example #1
0
 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 (Script != null)
     {
         Script.WriteBinary(writer);
     }
     if (ObjectEffect != null)
     {
         ObjectEffect.WriteBinary(writer);
     }
     if (BipedData != null)
     {
         BipedData.WriteBinary(writer);
     }
     if (MaleBipedModelFileName != null)
     {
         MaleBipedModelFileName.WriteBinary(writer);
     }
     if (MaleBipedModelTextureHashes != null)
     {
         MaleBipedModelTextureHashes.WriteBinary(writer);
     }
     if (MaleBipedModelAlternateTextures != null)
     {
         MaleBipedModelAlternateTextures.WriteBinary(writer);
     }
     if (MaleBipedModelFaceGenModelFlags != null)
     {
         MaleBipedModelFaceGenModelFlags.WriteBinary(writer);
     }
     if (MaleWorldModelFileName != null)
     {
         MaleWorldModelFileName.WriteBinary(writer);
     }
     if (MaleWorldModelTextureHashes != null)
     {
         MaleWorldModelTextureHashes.WriteBinary(writer);
     }
     if (MaleWorldModelAlternateTextures != null)
     {
         MaleWorldModelAlternateTextures.WriteBinary(writer);
     }
     if (MaleInventoryIcon != null)
     {
         MaleInventoryIcon.WriteBinary(writer);
     }
     if (MaleMessageIcon != null)
     {
         MaleMessageIcon.WriteBinary(writer);
     }
     if (FemaleBipedModelFileName != null)
     {
         FemaleBipedModelFileName.WriteBinary(writer);
     }
     if (FemaleBipedModelTextureHashes != null)
     {
         FemaleBipedModelTextureHashes.WriteBinary(writer);
     }
     if (FemaleBipedModelAlternateTextures != null)
     {
         FemaleBipedModelAlternateTextures.WriteBinary(writer);
     }
     if (FemaleBipedModelFaceGenModelFlags != null)
     {
         FemaleBipedModelFaceGenModelFlags.WriteBinary(writer);
     }
     if (FemaleWorldModelFileName != null)
     {
         FemaleWorldModelFileName.WriteBinary(writer);
     }
     if (FemaleWorldModelTextureHashes != null)
     {
         FemaleWorldModelTextureHashes.WriteBinary(writer);
     }
     if (FemaleWorldModelAlternateTextures != null)
     {
         FemaleWorldModelAlternateTextures.WriteBinary(writer);
     }
     if (FemaleInventoryIcon != null)
     {
         FemaleInventoryIcon.WriteBinary(writer);
     }
     if (FemaleMessageIcon != null)
     {
         FemaleMessageIcon.WriteBinary(writer);
     }
     if (RagdollConstraintTemplate != null)
     {
         RagdollConstraintTemplate.WriteBinary(writer);
     }
     if (RepairList != null)
     {
         RepairList.WriteBinary(writer);
     }
     if (BipedModelList != null)
     {
         BipedModelList.WriteBinary(writer);
     }
     if (EquipmentType != null)
     {
         EquipmentType.WriteBinary(writer);
     }
     if (PickupSound != null)
     {
         PickupSound.WriteBinary(writer);
     }
     if (DropSound != null)
     {
         DropSound.WriteBinary(writer);
     }
     if (Data != null)
     {
         Data.WriteBinary(writer);
     }
     if (ExtraData != null)
     {
         ExtraData.WriteBinary(writer);
     }
     if (OverridesAnimationSounds != null)
     {
         OverridesAnimationSounds.WriteBinary(writer);
     }
     if (AnimationSounds != null)
     {
         foreach (var item in AnimationSounds)
         {
             item.WriteBinary(writer);
         }
     }
     if (AnimationSoundsTemplate != null)
     {
         AnimationSoundsTemplate.WriteBinary(writer);
     }
 }
Example #2
0
 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 (BipedData != null)
     {
         BipedData.WriteBinary(writer);
     }
     if (MaleBipedModelFileName != null)
     {
         MaleBipedModelFileName.WriteBinary(writer);
     }
     if (MaleBipedModelTextureHashes != null)
     {
         MaleBipedModelTextureHashes.WriteBinary(writer);
     }
     if (MaleBipedModelAlternateTextures != null)
     {
         MaleBipedModelAlternateTextures.WriteBinary(writer);
     }
     if (MaleBipedModelFaceGenModelFlags != null)
     {
         MaleBipedModelFaceGenModelFlags.WriteBinary(writer);
     }
     if (MaleWorldModelFileName != null)
     {
         MaleWorldModelFileName.WriteBinary(writer);
     }
     if (MaleWorldModelTextureHashes != null)
     {
         MaleWorldModelTextureHashes.WriteBinary(writer);
     }
     if (MaleWorldModelAlternateTextures != null)
     {
         MaleWorldModelAlternateTextures.WriteBinary(writer);
     }
     if (MaleInventoryIcon != null)
     {
         MaleInventoryIcon.WriteBinary(writer);
     }
     if (MaleMessageIcon != null)
     {
         MaleMessageIcon.WriteBinary(writer);
     }
     if (FemaleBipedModelFileName != null)
     {
         FemaleBipedModelFileName.WriteBinary(writer);
     }
     if (FemaleBipedModelTextureHashes != null)
     {
         FemaleBipedModelTextureHashes.WriteBinary(writer);
     }
     if (FemaleBipedModelAlternateTextures != null)
     {
         FemaleBipedModelAlternateTextures.WriteBinary(writer);
     }
     if (FemaleBipedModelFaceGenModelFlags != null)
     {
         FemaleBipedModelFaceGenModelFlags.WriteBinary(writer);
     }
     if (FemaleWorldModelFileName != null)
     {
         FemaleWorldModelFileName.WriteBinary(writer);
     }
     if (FemaleWorldModelTextureHashes != null)
     {
         FemaleWorldModelTextureHashes.WriteBinary(writer);
     }
     if (FemaleWorldModelAlternateTextures != null)
     {
         FemaleWorldModelAlternateTextures.WriteBinary(writer);
     }
     if (FemaleInventoryIcon != null)
     {
         FemaleInventoryIcon.WriteBinary(writer);
     }
     if (FemaleMessageIcon != null)
     {
         FemaleMessageIcon.WriteBinary(writer);
     }
     if (EquipmentType != null)
     {
         EquipmentType.WriteBinary(writer);
     }
     if (Data != null)
     {
         Data.WriteBinary(writer);
     }
     if (ExtraData != null)
     {
         ExtraData.WriteBinary(writer);
     }
 }