public bool Equals(WaterDataAndDamage other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(Unknown.SequenceEqual(other.Unknown) &&
                   WaterPropertiesSunPower == other.WaterPropertiesSunPower &&
                   WaterPropertiesReflectivityAmount == other.WaterPropertiesReflectivityAmount &&
                   WaterPropertiesFresnelAmount == other.WaterPropertiesFresnelAmount &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   FogPropertiesAboveWaterFogNearPlaneDistance == other.FogPropertiesAboveWaterFogNearPlaneDistance &&
                   FogPropertiesAboveWaterFogFarPlaneDistance == other.FogPropertiesAboveWaterFogFarPlaneDistance &&
                   ColorShallow == other.ColorShallow &&
                   ColorDeep == other.ColorDeep &&
                   ColorReflection == other.ColorReflection &&
                   Unused2.SequenceEqual(other.Unused2) &&
                   RainSimulatorForce == other.RainSimulatorForce &&
                   RainSimulatorVelocity == other.RainSimulatorVelocity &&
                   RainSimulatorFalloff == other.RainSimulatorFalloff &&
                   RainSimulatorDampener == other.RainSimulatorDampener &&
                   DisplacementSimulatorStartingSize == other.DisplacementSimulatorStartingSize &&
                   DisplacementSimulatorForce == other.DisplacementSimulatorForce &&
                   DisplacementSimulatorVelocity == other.DisplacementSimulatorVelocity &&
                   DisplacementSimulatorFalloff == other.DisplacementSimulatorFalloff &&
                   DisplacementSimulatorDampener == other.DisplacementSimulatorDampener &&
                   RainSimulatorStartingSize == other.RainSimulatorStartingSize &&
                   NoisePropertiesNormalsNoiseScale == other.NoisePropertiesNormalsNoiseScale &&
                   NoisePropertiesNoiseLayerOneWindDirection == other.NoisePropertiesNoiseLayerOneWindDirection &&
                   NoisePropertiesNoiseLayerTwoWindDirection == other.NoisePropertiesNoiseLayerTwoWindDirection &&
                   NoisePropertiesNoiseLayerThreeWindDirection == other.NoisePropertiesNoiseLayerThreeWindDirection &&
                   NoisePropertiesNoiseLayerOneWindSpeed == other.NoisePropertiesNoiseLayerOneWindSpeed &&
                   NoisePropertiesNoiseLayerTwoWindSpeed == other.NoisePropertiesNoiseLayerTwoWindSpeed &&
                   NoisePropertiesNoiseLayerThreeWindSpeed == other.NoisePropertiesNoiseLayerThreeWindSpeed &&
                   NoisePropertiesNormalsDepthFalloffStart == other.NoisePropertiesNormalsDepthFalloffStart &&
                   NoisePropertiesNormalsDepthFalloffEnd == other.NoisePropertiesNormalsDepthFalloffEnd &&
                   FogPropertiesAboveWaterFogAmount == other.FogPropertiesAboveWaterFogAmount &&
                   NoisePropertiesNormalsUVScale == other.NoisePropertiesNormalsUVScale &&
                   FogPropertiesUnderWaterFogAmount == other.FogPropertiesUnderWaterFogAmount &&
                   FogPropertiesUnderWaterFogNearPlaneDistance == other.FogPropertiesUnderWaterFogNearPlaneDistance &&
                   FogPropertiesUnderWaterFogFarPlaneDistance == other.FogPropertiesUnderWaterFogFarPlaneDistance &&
                   WaterPropertiesDistortionAmount == other.WaterPropertiesDistortionAmount &&
                   WaterPropertiesShininess == other.WaterPropertiesShininess &&
                   WaterPropertiesReflectionHDRMult == other.WaterPropertiesReflectionHDRMult &&
                   WaterPropertiesLightRadius == other.WaterPropertiesLightRadius &&
                   WaterPropertiesLightBrightness == other.WaterPropertiesLightBrightness &&
                   NoisePropertiesNoiseLayerOneUVScale == other.NoisePropertiesNoiseLayerOneUVScale &&
                   NoisePropertiesNoiseLayerTwoUVScale == other.NoisePropertiesNoiseLayerTwoUVScale &&
                   NoisePropertiesNoiseLayerThreeUVScale == other.NoisePropertiesNoiseLayerThreeUVScale &&
                   NoisePropertiesNoiseLayerOneAmplitudeScale == other.NoisePropertiesNoiseLayerOneAmplitudeScale &&
                   NoisePropertiesNoiseLayerTwoAmplitudeScale == other.NoisePropertiesNoiseLayerTwoAmplitudeScale &&
                   NoisePropertiesNoiseLayerThreeAmplitudeScale == other.NoisePropertiesNoiseLayerThreeAmplitudeScale &&
                   Damage == other.Damage);
        }
Ejemplo n.º 2
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("Sky/Upper", true, out subEle);
            SkyUpper.WriteXML(subEle, master);

            ele.TryPathTo("Fog", true, out subEle);
            Fog.WriteXML(subEle, master);

            ele.TryPathTo("Unused1", true, out subEle);
            Unused1.WriteXML(subEle, master);

            ele.TryPathTo("Ambient", true, out subEle);
            Ambient.WriteXML(subEle, master);

            ele.TryPathTo("Sunlight", true, out subEle);
            Sunlight.WriteXML(subEle, master);

            ele.TryPathTo("Sun", true, out subEle);
            Sun.WriteXML(subEle, master);

            ele.TryPathTo("Stars", true, out subEle);
            Stars.WriteXML(subEle, master);

            ele.TryPathTo("Sky/Lower", true, out subEle);
            SkyLower.WriteXML(subEle, master);

            ele.TryPathTo("Horizon", true, out subEle);
            Horizon.WriteXML(subEle, master);

            ele.TryPathTo("Unused2", true, out subEle);
            Unused2.WriteXML(subEle, master);
        }
Ejemplo n.º 3
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Sky/Upper", false, out subEle))
            {
                SkyUpper.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Fog", false, out subEle))
            {
                Fog.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Unused1", false, out subEle))
            {
                Unused1.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Ambient", false, out subEle))
            {
                Ambient.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Sunlight", false, out subEle))
            {
                Sunlight.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Sun", false, out subEle))
            {
                Sun.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Stars", false, out subEle))
            {
                Stars.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Sky/Lower", false, out subEle))
            {
                SkyLower.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Horizon", false, out subEle))
            {
                Horizon.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Unused2", false, out subEle))
            {
                Unused2.ReadXML(subEle, master);
            }
        }
Ejemplo n.º 4
0
 protected override void WriteData(ESPWriter writer)
 {
     SkyUpper.WriteBinary(writer);
     Fog.WriteBinary(writer);
     Unused1.WriteBinary(writer);
     Ambient.WriteBinary(writer);
     Sunlight.WriteBinary(writer);
     Sun.WriteBinary(writer);
     Stars.WriteBinary(writer);
     SkyLower.WriteBinary(writer);
     Horizon.WriteBinary(writer);
     Unused2.WriteBinary(writer);
 }
Ejemplo n.º 5
0
 public override void Write(BinaryWriter writer, IShapefileHeader value, WordCount origin)
 {
     FileCode.Write(writer, FileCodeValue, origin); //TODO: ShapefileHeader should be constructed with this const value... then we write the property value.
     Unused1.Write(writer, UnusedValue, origin);    //TODO: ShapefileHeader should be constructed with this const value... then we write the property value.
     Unused2.Write(writer, UnusedValue, origin);    //TODO: ShapefileHeader should be constructed with this const value... then we write the property value.
     Unused3.Write(writer, UnusedValue, origin);    //TODO: ShapefileHeader should be constructed with this const value... then we write the property value.
     Unused4.Write(writer, UnusedValue, origin);    //TODO: ShapefileHeader should be constructed with this const value... then we write the property value.
     Unused5.Write(writer, UnusedValue, origin);    //TODO: ShapefileHeader should be constructed with this const value... then we write the property value.
     FileLength.Write(writer, value.FileLength, origin);
     Version.Write(writer, VersionValue, origin);   //TODO: ShapefileHeader should be constructed with this const value... then we write the property value.
     ShapeType.Write(writer, value.ShapeType, origin);
     BoxMin.Write(writer, value.BoundingBox.Min, origin);
     BoxMax.Write(writer, value.BoundingBox.Max, origin);
 }
        public bool Equals(CombatStyleDecision other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(ManeuverDodgeChance == other.ManeuverDodgeChance &&
                   ManeuverSidestepChance == other.ManeuverSidestepChance &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   ManeuverDodgeLRTimerMin == other.ManeuverDodgeLRTimerMin &&
                   ManeuverDodgeLRTimerMax == other.ManeuverDodgeLRTimerMax &&
                   ManeuverDodgeForwardTimerMin == other.ManeuverDodgeForwardTimerMin &&
                   ManeuverDodgeForwardTimerMax == other.ManeuverDodgeForwardTimerMax &&
                   ManeuverDodgeBackwardTimerMin == other.ManeuverDodgeBackwardTimerMin &&
                   ManeuverDodgeBackwardTimerMax == other.ManeuverDodgeBackwardTimerMax &&
                   ManeuverDodgeIdleTimerMin == other.ManeuverDodgeIdleTimerMin &&
                   ManeuverDodgeIdleTimerMax == other.ManeuverDodgeIdleTimerMax &&
                   MeleeBlockChance == other.MeleeBlockChance &&
                   MeleeAttackChance == other.MeleeAttackChance &&
                   Unused2.SequenceEqual(other.Unused2) &&
                   MeleeRecoilStaggerBonusToAttack == other.MeleeRecoilStaggerBonusToAttack &&
                   MeleeUnconsciousBonusToAttack == other.MeleeUnconsciousBonusToAttack &&
                   MeleeHandToHandBonusToAttack == other.MeleeHandToHandBonusToAttack &&
                   MeleePowerAttackChance == other.MeleePowerAttackChance &&
                   Unused3.SequenceEqual(other.Unused3) &&
                   MeleePowerAttackRecoilStaggerBonus == other.MeleePowerAttackRecoilStaggerBonus &&
                   MeleePowerAttackUnconsciousBonus == other.MeleePowerAttackUnconsciousBonus &&
                   MeleePowerAttackNormal == other.MeleePowerAttackNormal &&
                   MeleePowerAttackForward == other.MeleePowerAttackForward &&
                   MeleePowerAttackBack == other.MeleePowerAttackBack &&
                   MeleePowerAttackLeft == other.MeleePowerAttackLeft &&
                   MeleePowerAttackRight == other.MeleePowerAttackRight &&
                   Unused4.SequenceEqual(other.Unused4) &&
                   MeleeHoldTimerMin == other.MeleeHoldTimerMin &&
                   MeleeHoldTimerMax == other.MeleeHoldTimerMax &&
                   Flags == other.Flags &&
                   ManeuverAcrobaticDodgeChance == other.ManeuverAcrobaticDodgeChance &&
                   MeleeRushingPowerAttackChance == other.MeleeRushingPowerAttackChance &&
                   Unused5.SequenceEqual(other.Unused5) &&
                   MeleeRushingPowerAttackDistanceMult == other.MeleeRushingPowerAttackDistanceMult);
        }
Ejemplo n.º 7
0
        public bool Equals(ImageSpaceData other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(HDREyeAdaptSpeed == other.HDREyeAdaptSpeed &&
                   HDRBlurRadius == other.HDRBlurRadius &&
                   HDRBlurPasses == other.HDRBlurPasses &&
                   HDREmissiveMult == other.HDREmissiveMult &&
                   HDRLUMTarget == other.HDRLUMTarget &&
                   HDRLUMUpperClamp == other.HDRLUMUpperClamp &&
                   HDRBrightScale == other.HDRBrightScale &&
                   HDRBrightClamp == other.HDRBrightClamp &&
                   HDRLUMRampNoTex == other.HDRLUMRampNoTex &&
                   HDRLUMRampMin == other.HDRLUMRampMin &&
                   HDRLUMRampMax == other.HDRLUMRampMax &&
                   HDRSunlightDimmer == other.HDRSunlightDimmer &&
                   HDRGrassDimmer == other.HDRGrassDimmer &&
                   HDRTreeDimmer == other.HDRTreeDimmer &&
                   HDRSkinDimmer == other.HDRSkinDimmer &&
                   BloomBlurRadius == other.BloomBlurRadius &&
                   BloomAlphaMultInterior == other.BloomAlphaMultInterior &&
                   BloomAlphaMultExterior == other.BloomAlphaMultExterior &&
                   GetHitBlurRadius == other.GetHitBlurRadius &&
                   GetHitBlurDampingConstant == other.GetHitBlurDampingConstant &&
                   NightEyeTintColorRed == other.NightEyeTintColorRed &&
                   NightEyeTintColorGreen == other.NightEyeTintColorGreen &&
                   NightEyeTintColorBlue == other.NightEyeTintColorBlue &&
                   Brightness == other.Brightness &&
                   CinematicSaturation == other.CinematicSaturation &&
                   CinematicContrastAvgLUMValue == other.CinematicContrastAvgLUMValue &&
                   CinematicContrastValue == other.CinematicContrastValue &&
                   CinematicBrightnessTintColorRed == other.CinematicBrightnessTintColorRed &&
                   CinematicBrightnessTintColorGreen == other.CinematicBrightnessTintColorGreen &&
                   CinematicBrightnessTintColorBlue == other.CinematicBrightnessTintColorBlue &&
                   CinematicBrightnessTintValue == other.CinematicBrightnessTintValue &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   Flags == other.Flags &&
                   Unused2.SequenceEqual(other.Unused2));
        }
        public bool Equals(LocalVariableData other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(Index == other.Index &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   Flags == other.Flags &&
                   Unused2.SequenceEqual(other.Unused2));
        }
Ejemplo n.º 9
0
        public bool Equals(LeveledObjectData other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(Level == other.Level &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   Reference == other.Reference &&
                   Count == other.Count &&
                   Unused2.SequenceEqual(other.Unused2));
        }
Ejemplo n.º 10
0
        public bool Equals(EnchantData other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(Type == other.Type &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   Unused2.SequenceEqual(other.Unused2) &&
                   Flags == other.Flags &&
                   Unused3.SequenceEqual(other.Unused3));
        }
        public bool Equals(WeaponCriticalHitData other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(Damage == other.Damage &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   ChanceMult == other.ChanceMult &&
                   Flags == other.Flags &&
                   Unused2.SequenceEqual(other.Unused2) &&
                   Effect == other.Effect);
        }
Ejemplo n.º 12
0
        public bool Equals(PackageData other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(Flags == other.Flags &&
                   Type == other.Type &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   FalloutBehaviorFlags == other.FalloutBehaviorFlags &&
                   TypeFlags == other.TypeFlags &&
                   Unused2.SequenceEqual(other.Unused2));
        }
Ejemplo n.º 13
0
        public bool Equals(RagdollData other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(DynamicBoneCount == other.DynamicBoneCount &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   FeedbackEnabled == other.FeedbackEnabled &&
                   FootIKEnabled == other.FootIKEnabled &&
                   LookIKEnabled == other.LookIKEnabled &&
                   GrabIKEnabled == other.GrabIKEnabled &&
                   PoseMatching == other.PoseMatching &&
                   Unused2 == other.Unused2);
        }
Ejemplo n.º 14
0
        public bool Equals(ResponseData other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(Emotion == other.Emotion &&
                   EmotionValue == other.EmotionValue &&
                   Unused1.SequenceEqual(other.Unused1) &&
                   ResponseNumber == other.ResponseNumber &&
                   Unused2.SequenceEqual(other.Unused2) &&
                   Sound == other.Sound &&
                   UseEmotionAnimation == other.UseEmotionAnimation &&
                   Unused3.SequenceEqual(other.Unused3));
        }
Ejemplo n.º 15
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 SkyUpper.ReadBinary(subReader);
                 Fog.ReadBinary(subReader);
                 Unused1.ReadBinary(subReader);
                 Ambient.ReadBinary(subReader);
                 Sunlight.ReadBinary(subReader);
                 Sun.ReadBinary(subReader);
                 Stars.ReadBinary(subReader);
                 SkyLower.ReadBinary(subReader);
                 Horizon.ReadBinary(subReader);
                 Unused2.ReadBinary(subReader);
             }
             catch
             {
                 return;
             }
         }
 }
Ejemplo n.º 16
0
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (Content != null)
     {
         Content.WriteBinary(writer);
     }
     if (Header != null)
     {
         Header.WriteBinary(writer);
     }
     if (Icon != null)
     {
         Icon.WriteBinary(writer);
     }
     if (Unused0 != null)
     {
         Unused0.WriteBinary(writer);
     }
     if (Unused1 != null)
     {
         Unused1.WriteBinary(writer);
     }
     if (Unused2 != null)
     {
         Unused2.WriteBinary(writer);
     }
     if (Unused3 != null)
     {
         Unused3.WriteBinary(writer);
     }
     if (Unused4 != null)
     {
         Unused4.WriteBinary(writer);
     }
     if (Unused5 != null)
     {
         Unused5.WriteBinary(writer);
     }
     if (Unused6 != null)
     {
         Unused6.WriteBinary(writer);
     }
     if (Unused7 != null)
     {
         Unused7.WriteBinary(writer);
     }
     if (Unused8 != null)
     {
         Unused8.WriteBinary(writer);
     }
     if (Unused9 != null)
     {
         Unused9.WriteBinary(writer);
     }
     if (MessageFlags != null)
     {
         MessageFlags.WriteBinary(writer);
     }
     if (DisplayTime != null)
     {
         DisplayTime.WriteBinary(writer);
     }
     if (Buttons != null)
     {
         foreach (var item in Buttons)
         {
             item.WriteBinary(writer);
         }
     }
 }
Ejemplo n.º 17
0
        public override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("EditorID", false, out subEle))
            {
                if (EditorID == null)
                {
                    EditorID = new SimpleSubrecord <String>();
                }

                EditorID.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Content", false, out subEle))
            {
                if (Content == null)
                {
                    Content = new SimpleSubrecord <String>();
                }

                Content.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Header", false, out subEle))
            {
                if (Header == null)
                {
                    Header = new SimpleSubrecord <String>();
                }

                Header.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Icon", false, out subEle))
            {
                if (Icon == null)
                {
                    Icon = new RecordReference();
                }

                Icon.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused0", false, out subEle))
            {
                if (Unused0 == null)
                {
                    Unused0 = new SimpleSubrecord <Byte[]>();
                }

                Unused0.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused1", false, out subEle))
            {
                if (Unused1 == null)
                {
                    Unused1 = new SimpleSubrecord <Byte[]>();
                }

                Unused1.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused2", false, out subEle))
            {
                if (Unused2 == null)
                {
                    Unused2 = new SimpleSubrecord <Byte[]>();
                }

                Unused2.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused3", false, out subEle))
            {
                if (Unused3 == null)
                {
                    Unused3 = new SimpleSubrecord <Byte[]>();
                }

                Unused3.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused4", false, out subEle))
            {
                if (Unused4 == null)
                {
                    Unused4 = new SimpleSubrecord <Byte[]>();
                }

                Unused4.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused5", false, out subEle))
            {
                if (Unused5 == null)
                {
                    Unused5 = new SimpleSubrecord <Byte[]>();
                }

                Unused5.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused6", false, out subEle))
            {
                if (Unused6 == null)
                {
                    Unused6 = new SimpleSubrecord <Byte[]>();
                }

                Unused6.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused7", false, out subEle))
            {
                if (Unused7 == null)
                {
                    Unused7 = new SimpleSubrecord <Byte[]>();
                }

                Unused7.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused8", false, out subEle))
            {
                if (Unused8 == null)
                {
                    Unused8 = new SimpleSubrecord <Byte[]>();
                }

                Unused8.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Unused/Unused9", false, out subEle))
            {
                if (Unused9 == null)
                {
                    Unused9 = new SimpleSubrecord <Byte[]>();
                }

                Unused9.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("MessageFlags", false, out subEle))
            {
                if (MessageFlags == null)
                {
                    MessageFlags = new SimpleSubrecord <MessageFlags>();
                }

                MessageFlags.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("DisplayTime", false, out subEle))
            {
                if (DisplayTime == null)
                {
                    DisplayTime = new SimpleSubrecord <UInt32>();
                }

                DisplayTime.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Buttons", false, out subEle))
            {
                if (Buttons == null)
                {
                    Buttons = new List <MessageButton>();
                }

                foreach (XElement e in subEle.Elements())
                {
                    MessageButton tempITXT = new MessageButton();
                    tempITXT.ReadXML(e, master);
                    Buttons.Add(tempITXT);
                }
            }
        }
Ejemplo n.º 18
0
        public override void ReadData(ESPReader reader, long dataEnd)
        {
            while (reader.BaseStream.Position < dataEnd)
            {
                string subTag = reader.PeekTag();

                switch (subTag)
                {
                case "EDID":
                    if (EditorID == null)
                    {
                        EditorID = new SimpleSubrecord <String>();
                    }

                    EditorID.ReadBinary(reader);
                    break;

                case "DESC":
                    if (Content == null)
                    {
                        Content = new SimpleSubrecord <String>();
                    }

                    Content.ReadBinary(reader);
                    break;

                case "FULL":
                    if (Header == null)
                    {
                        Header = new SimpleSubrecord <String>();
                    }

                    Header.ReadBinary(reader);
                    break;

                case "INAM":
                    if (Icon == null)
                    {
                        Icon = new RecordReference();
                    }

                    Icon.ReadBinary(reader);
                    break;

                case "NAM0":
                    if (Unused0 == null)
                    {
                        Unused0 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused0.ReadBinary(reader);
                    break;

                case "NAM1":
                    if (Unused1 == null)
                    {
                        Unused1 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused1.ReadBinary(reader);
                    break;

                case "NAM2":
                    if (Unused2 == null)
                    {
                        Unused2 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused2.ReadBinary(reader);
                    break;

                case "NAM3":
                    if (Unused3 == null)
                    {
                        Unused3 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused3.ReadBinary(reader);
                    break;

                case "NAM4":
                    if (Unused4 == null)
                    {
                        Unused4 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused4.ReadBinary(reader);
                    break;

                case "NAM5":
                    if (Unused5 == null)
                    {
                        Unused5 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused5.ReadBinary(reader);
                    break;

                case "NAM6":
                    if (Unused6 == null)
                    {
                        Unused6 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused6.ReadBinary(reader);
                    break;

                case "NAM7":
                    if (Unused7 == null)
                    {
                        Unused7 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused7.ReadBinary(reader);
                    break;

                case "NAM8":
                    if (Unused8 == null)
                    {
                        Unused8 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused8.ReadBinary(reader);
                    break;

                case "NAM9":
                    if (Unused9 == null)
                    {
                        Unused9 = new SimpleSubrecord <Byte[]>();
                    }

                    Unused9.ReadBinary(reader);
                    break;

                case "DNAM":
                    if (MessageFlags == null)
                    {
                        MessageFlags = new SimpleSubrecord <MessageFlags>();
                    }

                    MessageFlags.ReadBinary(reader);
                    break;

                case "TNAM":
                    if (DisplayTime == null)
                    {
                        DisplayTime = new SimpleSubrecord <UInt32>();
                    }

                    DisplayTime.ReadBinary(reader);
                    break;

                case "ITXT":
                    if (Buttons == null)
                    {
                        Buttons = new List <MessageButton>();
                    }

                    MessageButton tempITXT = new MessageButton();
                    tempITXT.ReadBinary(reader);
                    Buttons.Add(tempITXT);
                    break;

                default:
                    throw new Exception();
                }
            }
        }
Ejemplo n.º 19
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("HDR/EyeAdaptSpeed", true, out subEle);
            subEle.Value = HDREyeAdaptSpeed.ToString("G15");

            ele.TryPathTo("HDR/Blur/Radius", true, out subEle);
            subEle.Value = HDRBlurRadius.ToString("G15");

            ele.TryPathTo("HDR/Blur/Passes", true, out subEle);
            subEle.Value = HDRBlurPasses.ToString("G15");

            ele.TryPathTo("HDR/EmissiveMult", true, out subEle);
            subEle.Value = HDREmissiveMult.ToString("G15");

            ele.TryPathTo("HDR/LUM/Target", true, out subEle);
            subEle.Value = HDRLUMTarget.ToString("G15");

            ele.TryPathTo("HDR/LUM/UpperClamp", true, out subEle);
            subEle.Value = HDRLUMUpperClamp.ToString("G15");

            ele.TryPathTo("HDR/Bright/Scale", true, out subEle);
            subEle.Value = HDRBrightScale.ToString("G15");

            ele.TryPathTo("HDR/Bright/Clamp", true, out subEle);
            subEle.Value = HDRBrightClamp.ToString("G15");

            ele.TryPathTo("HDR/LUM/RampNoTex", true, out subEle);
            subEle.Value = HDRLUMRampNoTex.ToString("G15");

            ele.TryPathTo("HDR/LUM/RampMin", true, out subEle);
            subEle.Value = HDRLUMRampMin.ToString("G15");

            ele.TryPathTo("HDR/LUM/RampMax", true, out subEle);
            subEle.Value = HDRLUMRampMax.ToString("G15");

            ele.TryPathTo("HDR/SunlightDimmer", true, out subEle);
            subEle.Value = HDRSunlightDimmer.ToString("G15");

            ele.TryPathTo("HDR/GrassDimmer", true, out subEle);
            subEle.Value = HDRGrassDimmer.ToString("G15");

            ele.TryPathTo("HDR/TreeDimmer", true, out subEle);
            subEle.Value = HDRTreeDimmer.ToString("G15");

            ele.TryPathTo("HDR/SkinDimmer", true, out subEle);
            subEle.Value = HDRSkinDimmer.ToString("G15");

            ele.TryPathTo("Bloom/BlurRadius", true, out subEle);
            subEle.Value = BloomBlurRadius.ToString("G15");

            ele.TryPathTo("Bloom/AlphaMult/Interior", true, out subEle);
            subEle.Value = BloomAlphaMultInterior.ToString("G15");

            ele.TryPathTo("Bloom/AlphaMult/Exterior", true, out subEle);
            subEle.Value = BloomAlphaMultExterior.ToString("G15");

            ele.TryPathTo("GetHit/Blur/Radius", true, out subEle);
            subEle.Value = GetHitBlurRadius.ToString("G15");

            ele.TryPathTo("GetHit/Blur/DampingConstant", true, out subEle);
            subEle.Value = GetHitBlurDampingConstant.ToString("G15");

            ele.TryPathTo("NightEyeTintColor/Red", true, out subEle);
            subEle.Value = NightEyeTintColorRed.ToString("G15");

            ele.TryPathTo("NightEyeTintColor/Green", true, out subEle);
            subEle.Value = NightEyeTintColorGreen.ToString("G15");

            ele.TryPathTo("NightEyeTintColor/Blue", true, out subEle);
            subEle.Value = NightEyeTintColorBlue.ToString("G15");

            ele.TryPathTo("Brightness", true, out subEle);
            subEle.Value = Brightness.ToString("G15");

            ele.TryPathTo("Cinematic/Saturation", true, out subEle);
            subEle.Value = CinematicSaturation.ToString("G15");

            ele.TryPathTo("Cinematic/Contrast/AvgLUMValue", true, out subEle);
            subEle.Value = CinematicContrastAvgLUMValue.ToString("G15");

            ele.TryPathTo("Cinematic/Contrast/Value", true, out subEle);
            subEle.Value = CinematicContrastValue.ToString("G15");

            ele.TryPathTo("Cinematic/BrightnessTint/Color/Red", true, out subEle);
            subEle.Value = CinematicBrightnessTintColorRed.ToString("G15");

            ele.TryPathTo("Cinematic/BrightnessTint/Color/Green", true, out subEle);
            subEle.Value = CinematicBrightnessTintColorGreen.ToString("G15");

            ele.TryPathTo("Cinematic/BrightnessTint/Color/Blue", true, out subEle);
            subEle.Value = CinematicBrightnessTintColorBlue.ToString("G15");

            ele.TryPathTo("Cinematic/BrightnessTint/Value", true, out subEle);
            subEle.Value = CinematicBrightnessTintValue.ToString("G15");

            ele.TryPathTo("Unused1", true, out subEle);
            subEle.Value = Unused1.ToHex();

            ele.TryPathTo("Flags", true, out subEle);
            subEle.Value = Flags.ToString();

            ele.TryPathTo("Unused2", true, out subEle);
            subEle.Value = Unused2.ToHex();
        }
Ejemplo n.º 20
0
        public override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (EditorID != null)
            {
                ele.TryPathTo("EditorID", true, out subEle);
                EditorID.WriteXML(subEle, master);
            }
            if (Content != null)
            {
                ele.TryPathTo("Content", true, out subEle);
                Content.WriteXML(subEle, master);
            }
            if (Header != null)
            {
                ele.TryPathTo("Header", true, out subEle);
                Header.WriteXML(subEle, master);
            }
            if (Icon != null)
            {
                ele.TryPathTo("Icon", true, out subEle);
                Icon.WriteXML(subEle, master);
            }
            if (Unused0 != null)
            {
                ele.TryPathTo("Unused/Unused0", true, out subEle);
                Unused0.WriteXML(subEle, master);
            }
            if (Unused1 != null)
            {
                ele.TryPathTo("Unused/Unused1", true, out subEle);
                Unused1.WriteXML(subEle, master);
            }
            if (Unused2 != null)
            {
                ele.TryPathTo("Unused/Unused2", true, out subEle);
                Unused2.WriteXML(subEle, master);
            }
            if (Unused3 != null)
            {
                ele.TryPathTo("Unused/Unused3", true, out subEle);
                Unused3.WriteXML(subEle, master);
            }
            if (Unused4 != null)
            {
                ele.TryPathTo("Unused/Unused4", true, out subEle);
                Unused4.WriteXML(subEle, master);
            }
            if (Unused5 != null)
            {
                ele.TryPathTo("Unused/Unused5", true, out subEle);
                Unused5.WriteXML(subEle, master);
            }
            if (Unused6 != null)
            {
                ele.TryPathTo("Unused/Unused6", true, out subEle);
                Unused6.WriteXML(subEle, master);
            }
            if (Unused7 != null)
            {
                ele.TryPathTo("Unused/Unused7", true, out subEle);
                Unused7.WriteXML(subEle, master);
            }
            if (Unused8 != null)
            {
                ele.TryPathTo("Unused/Unused8", true, out subEle);
                Unused8.WriteXML(subEle, master);
            }
            if (Unused9 != null)
            {
                ele.TryPathTo("Unused/Unused9", true, out subEle);
                Unused9.WriteXML(subEle, master);
            }
            if (MessageFlags != null)
            {
                ele.TryPathTo("MessageFlags", true, out subEle);
                MessageFlags.WriteXML(subEle, master);
            }
            if (DisplayTime != null)
            {
                ele.TryPathTo("DisplayTime", true, out subEle);
                DisplayTime.WriteXML(subEle, master);
            }
            if (Buttons != null)
            {
                ele.TryPathTo("Buttons", true, out subEle);
                List <string> xmlNames = new List <string> {
                    "Button"
                };
                int i = 0;
                foreach (var entry in Buttons)
                {
                    i = i % xmlNames.Count();
                    XElement newEle = new XElement(xmlNames[i]);
                    entry.WriteXML(newEle, master);
                    subEle.Add(newEle);
                    i++;
                }
            }
        }