Exemple #1
0
 protected override void WriteData(ESPWriter writer)
 {
     writer.Write((SByte)SkillBonus1);
     writer.Write(SkillBonus1Amount);
     writer.Write((SByte)SkillBonus2);
     writer.Write(SkillBonus2Amount);
     writer.Write((SByte)SkillBonus3);
     writer.Write(SkillBonus3Amount);
     writer.Write((SByte)SkillBonus4);
     writer.Write(SkillBonus4Amount);
     writer.Write((SByte)SkillBonus5);
     writer.Write(SkillBonus5Amount);
     writer.Write((SByte)SkillBonus6);
     writer.Write(SkillBonus6Amount);
     writer.Write((SByte)SkillBonus7);
     writer.Write(SkillBonus7Amount);
     if (Unused == null)
     {
         writer.Write(new byte[2]);
     }
     else
     {
         writer.Write(Unused);
     }
     writer.Write(MaleHeight);
     writer.Write(FemaleHeight);
     writer.Write(MaleWeight);
     writer.Write(FemaleWeight);
     writer.Write((UInt32)RaceFlags);
 }
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (ObjectBounds != null)
     {
         ObjectBounds.WriteBinary(writer);
     }
     if (Model != null)
     {
         Model.WriteBinary(writer);
     }
     if (NodeIndex != null)
     {
         NodeIndex.WriteBinary(writer);
     }
     if (Sound != null)
     {
         Sound.WriteBinary(writer);
     }
     if (Data != null)
     {
         Data.WriteBinary(writer);
     }
 }
 partial void WriteValue2(ESPWriter writer)
 {
     if (Value2 != null)
     {
         Value2.WriteBinary(writer);
     }
 }
 public void WriteBinary(ESPWriter writer)
 {
     writer.Write(Red);
     writer.Write(Green);
     writer.Write(Blue);
     writer.Write(Alpha_Unused);
 }
        public override void WriteBinary(ESPWriter writer)
        {
            if (Data != null)
            {
                Data.WriteBinary(writer);
            }
            if (CompiledScript != null)
            {
                CompiledScript.WriteBinary(writer);
            }
            if (ScriptSource != null)
            {
                ScriptSource.WriteBinary(writer);
            }
            if (LocalVariables != null)
            {
                foreach (var item in LocalVariables)
                {
                    item.WriteBinary(writer);
                }
            }

            WriteReferences(writer);

            WriteLocalReference(writer);

            WriteGlobalReference(writer);
        }
Exemple #6
0
 protected override void WriteData(ESPWriter writer)
 {
     writer.Write(MinAttenuationDistance);
     writer.Write(MaxAttenuationDistance);
     writer.Write(FrequencyAdjustmentPercentage);
     writer.Write(Unused);
     writer.Write((UInt32)SoundDataFlags);
     writer.Write(StaticAttenuationcdB);
     writer.Write(StopTime);
     writer.Write(StartTime);
     writer.Write(AttenuationCurvePoint1);
     writer.Write(AttenuationCurvePoint2);
     writer.Write(AttenuationCurvePoint3);
     writer.Write(AttenuationCurvePoint4);
     writer.Write(AttenuationCurvePoint5);
     writer.Write(ReverbAttenuationControl);
     writer.Write(Priority);
     if (Unknown == null)
     {
         writer.Write(new byte[8]);
     }
     else
     {
         writer.Write(Unknown);
     }
 }
Exemple #7
0
 protected override void WriteData(ESPWriter writer)
 {
     writer.Write(Layer0);
     writer.Write(Layer1);
     writer.Write(Layer2);
     writer.Write(Layer3);
 }
Exemple #8
0
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (Version != null)
     {
         Version.WriteBinary(writer);
     }
     if (NavigationMapInfoList != null)
     {
         foreach (var item in NavigationMapInfoList)
         {
             item.WriteBinary(writer);
         }
     }
     if (NavigationConnectionInfoList != null)
     {
         foreach (var item in NavigationConnectionInfoList)
         {
             item.WriteBinary(writer);
         }
     }
 }
Exemple #9
0
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (Model != null)
     {
         Model.WriteBinary(writer);
     }
     if (NamedBodyParts != null)
     {
         foreach (var item in NamedBodyParts)
         {
             item.WriteBinary(writer);
         }
     }
     if (BodyParts != null)
     {
         foreach (var item in BodyParts)
         {
             item.WriteBinary(writer);
         }
     }
     if (Ragdoll != null)
     {
         Ragdoll.WriteBinary(writer);
     }
 }
Exemple #10
0
 protected override void WriteData(ESPWriter writer)
 {
     Direct.WriteBinary(writer);
     IndirectWorld.WriteBinary(writer);
     writer.Write(IndirectGridY);
     writer.Write(IndirectGridX);
 }
Exemple #11
0
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (ObjectBounds != null)
     {
         ObjectBounds.WriteBinary(writer);
     }
     if (ChanceNone != null)
     {
         ChanceNone.WriteBinary(writer);
     }
     if (LeveledObjectFlags != null)
     {
         LeveledObjectFlags.WriteBinary(writer);
     }
     if (LeveledList != null)
     {
         foreach (var item in LeveledList)
         {
             item.WriteBinary(writer);
         }
     }
     if (Model != null)
     {
         Model.WriteBinary(writer);
     }
 }
 public override void WriteBinary(ESPWriter writer)
 {
     if (PartNode != null)
     {
         PartNode.WriteBinary(writer);
     }
     if (VATSTarget != null)
     {
         VATSTarget.WriteBinary(writer);
     }
     if (IKDataStartNode != null)
     {
         IKDataStartNode.WriteBinary(writer);
     }
     if (Data != null)
     {
         Data.WriteBinary(writer);
     }
     if (LimbReplacementModel != null)
     {
         LimbReplacementModel.WriteBinary(writer);
     }
     if (GoreEffectsTargetBone != null)
     {
         GoreEffectsTargetBone.WriteBinary(writer);
     }
     if (TextureFileHashes != null)
     {
         TextureFileHashes.WriteBinary(writer);
     }
 }
 protected override void WriteData(ESPWriter writer)
 {
     writer.Write((UInt32)Emotion);
     writer.Write(EmotionValue);
     if (Unused1 == null)
     {
         writer.Write(new byte[4]);
     }
     else
     {
         writer.Write(Unused1);
     }
     writer.Write(ResponseNumber);
     if (Unused2 == null)
     {
         writer.Write(new byte[3]);
     }
     else
     {
         writer.Write(Unused2);
     }
     Sound.WriteBinary(writer);
     writer.Write((Byte)UseEmotionAnimation);
     if (Unused3 == null)
     {
         writer.Write(new byte[3]);
     }
     else
     {
         writer.Write(Unused3);
     }
 }
 public override void WriteBinary(ESPWriter writer)
 {
     if (ItemText != null)
     {
         ItemText.WriteBinary(writer);
     }
     if (ResultText != null)
     {
         ResultText.WriteBinary(writer);
     }
     if (Flags != null)
     {
         Flags.WriteBinary(writer);
     }
     if (DisplayNote != null)
     {
         DisplayNote.WriteBinary(writer);
     }
     if (SubMenu != null)
     {
         SubMenu.WriteBinary(writer);
     }
     if (Script != null)
     {
         Script.WriteBinary(writer);
     }
     if (Conditions != null)
     {
         foreach (var item in Conditions)
         {
             item.WriteBinary(writer);
         }
     }
 }
 protected override void WriteData(ESPWriter writer)
 {
     foreach (var temp in Forms)
     {
         temp.WriteBinary(writer);
     }
 }
Exemple #16
0
 public override void WriteData(ESPWriter writer)
 {
     foreach (Subrecord sub in Subrecords)
     {
         sub.WriteBinary(writer);
     }
 }
 protected override void WriteData(ESPWriter writer)
 {
     foreach (var temp in Bones)
     {
         writer.Write(temp);
     }
 }
 protected override void WriteData(ESPWriter writer)
 {
     writer.Write((UInt32)MagicEffectFlags);
     writer.Write(BaseCost);
     AssociatedItem.WriteBinary(writer);
     writer.Write((Int32)MagicSchool);
     writer.Write((Int32)ResistanceType);
     writer.Write(Unknown);
     if (Unused == null)
     {
         writer.Write(new byte[2]);
     }
     else
     {
         writer.Write(Unused);
     }
     Light.WriteBinary(writer);
     writer.Write(ProjectileSpeed);
     EffectShader.WriteBinary(writer);
     ObjectDisplayShader.WriteBinary(writer);
     EffectSound.WriteBinary(writer);
     BoltSound.WriteBinary(writer);
     HitSound.WriteBinary(writer);
     AreaSound.WriteBinary(writer);
     writer.Write(ConstantEffectEnchantmentFactor);
     writer.Write(ConstantEffectBarterFactor);
     writer.Write((UInt32)Archetype);
     writer.Write((Int32)ActorValue);
 }
Exemple #19
0
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (Model != null)
     {
         Model.WriteBinary(writer);
     }
     if (Data != null)
     {
         Data.WriteBinary(writer);
     }
     if (DecalData != null)
     {
         DecalData.WriteBinary(writer);
     }
     if (TextureSet != null)
     {
         TextureSet.WriteBinary(writer);
     }
     if (Sound1 != null)
     {
         Sound1.WriteBinary(writer);
     }
     if (Sound2 != null)
     {
         Sound2.WriteBinary(writer);
     }
 }
        protected override void WriteData(ESPWriter writer)
        {
            string data = String.Join("\0", Strings);

            writer.Write(data.ToCharArray());
            writer.Write((byte)0);
        }
Exemple #21
0
 protected override void WriteData(ESPWriter writer)
 {
     Right.WriteBinary(writer);
     Left.WriteBinary(writer);
     Bottom.WriteBinary(writer);
     Top.WriteBinary(writer);
 }
 protected override void WriteData(ESPWriter writer)
 {
     Layer0.WriteBinary(writer);
     Layer1.WriteBinary(writer);
     Layer2.WriteBinary(writer);
     Layer3.WriteBinary(writer);
 }
Exemple #23
0
 protected override void WriteData(ESPWriter writer)
 {
     writer.Write(BarterValue);
     writer.Write(BigGunsValue);
     writer.Write(EnergyWeaponsValue);
     writer.Write(ExplosivesValue);
     writer.Write(LockpickValue);
     writer.Write(MedicineValue);
     writer.Write(MeleeWeaponsValue);
     writer.Write(RepairValue);
     writer.Write(ScienceValue);
     writer.Write(GunsValue);
     writer.Write(SneakValue);
     writer.Write(SpeechValue);
     writer.Write(SurvivalValue);
     writer.Write(UnarmedValue);
     writer.Write(BarterOffset);
     writer.Write(BigGunsOffset);
     writer.Write(EnergyWeaponsOffset);
     writer.Write(ExplosivesOffset);
     writer.Write(LockpickOffset);
     writer.Write(MedicineOffset);
     writer.Write(MeleeWeaponsOffset);
     writer.Write(RepairOffset);
     writer.Write(ScienceOffset);
     writer.Write(GunsOffset);
     writer.Write(SneakOffset);
     writer.Write(SpeechOffset);
     writer.Write(SurvivalOffset);
     writer.Write(UnarmedOffset);
 }
Exemple #24
0
        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);
            }
        }
 partial void WriteDummyIgnore(ESPWriter writer)
 {
     if (Location2 != null)
     {
         Location2.WriteBinary(writer);
     }
 }
Exemple #26
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 (Model != null)
     {
         Model.WriteBinary(writer);
     }
     if (Destructable != null)
     {
         Destructable.WriteBinary(writer);
     }
     if (Unknown != null)
     {
         Unknown.WriteBinary(writer);
     }
     if (Sound != null)
     {
         Sound.WriteBinary(writer);
     }
 }
 partial void WriteValue1(ESPWriter writer)
 {
     if (Value1 != null)
     {
         Value1.WriteBinary(writer);
     }
 }
Exemple #28
0
 protected override void WriteData(ESPWriter writer)
 {
     writer.Write(Density);
     writer.Write(MinSlope);
     writer.Write(MaxSlope);
     writer.Write(Unused1);
     writer.Write(UnitFromWaterAmount);
     if (Unused2 == null)
     {
         writer.Write(new byte[2]);
     }
     else
     {
         writer.Write(Unused2);
     }
     writer.Write((UInt32)UnitFromWaterType);
     writer.Write(PositionRange);
     writer.Write(HeightRange);
     writer.Write(ColorRange);
     writer.Write(WavePeriod);
     writer.Write((Byte)Flags);
     if (Unused3 == null)
     {
         writer.Write(new byte[3]);
     }
     else
     {
         writer.Write(Unused3);
     }
 }
Exemple #29
0
        public override void WriteData(ESPWriter writer)
        {
            if (EditorID != null)
            {
                EditorID.WriteBinary(writer);
            }
            if (Name != null)
            {
                Name.WriteBinary(writer);
            }
            if (LargeIcon != null)
            {
                LargeIcon.WriteBinary(writer);
            }
            if (SmallIcon != null)
            {
                SmallIcon.WriteBinary(writer);
            }
            if (Script != null)
            {
                Script.WriteBinary(writer);
            }
            if (Description != null)
            {
                Description.WriteBinary(writer);
            }
            if (Data != null)
            {
                Data.WriteBinary(writer);
            }

            WriteValue1(writer);

            WriteValue2(writer);
        }
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (Model != null)
     {
         Model.WriteBinary(writer);
     }
     if (Conditions != null)
     {
         foreach (var item in Conditions)
         {
             item.WriteBinary(writer);
         }
     }
     if (RelatedIdles != null)
     {
         RelatedIdles.WriteBinary(writer);
     }
     if (Data != null)
     {
         Data.WriteBinary(writer);
     }
 }