protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Bounds/X", true, out subEle); subEle.Value = XBound.ToString("G15"); ele.TryPathTo("Bounds/Y", true, out subEle); subEle.Value = YBound.ToString("G15"); ele.TryPathTo("Bounds/Z", true, out subEle); subEle.Value = ZBound.ToString("G15"); ele.TryPathTo("Color/Red", true, out subEle); subEle.Value = Red.ToString("G15"); ele.TryPathTo("Color/Green", true, out subEle); subEle.Value = Green.ToString("G15"); ele.TryPathTo("Color/Blue", true, out subEle); subEle.Value = Blue.ToString("G15"); ele.TryPathTo("Unknown", true, out subEle); subEle.Value = Unknown.ToHex(); ele.TryPathTo("Type", true, out subEle); subEle.Value = Type.ToString(); }
public void WriteXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Unknown", true, out subEle); subEle.Value = Unknown.ToHex(); ele.TryPathTo("NavigationMesh", true, out subEle); NavigationMesh.WriteXML(subEle, master); ele.TryPathTo("Triangle", true, out subEle); subEle.Value = Triangle.ToString(); }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Unknown", true, out subEle); subEle.Value = Unknown.ToHex(); ele.TryPathTo("WaterProperties/SunPower", true, out subEle); subEle.Value = WaterPropertiesSunPower.ToString("G15"); ele.TryPathTo("WaterProperties/ReflectivityAmount", true, out subEle); subEle.Value = WaterPropertiesReflectivityAmount.ToString("G15"); ele.TryPathTo("WaterProperties/FresnelAmount", true, out subEle); subEle.Value = WaterPropertiesFresnelAmount.ToString("G15"); WriteUnused1XML(ele, master); ele.TryPathTo("FogProperties/AboveWater/FogNearPlaneDistance", true, out subEle); subEle.Value = FogPropertiesAboveWaterFogNearPlaneDistance.ToString("G15"); ele.TryPathTo("FogProperties/AboveWater/FogFarPlaneDistance", true, out subEle); subEle.Value = FogPropertiesAboveWaterFogFarPlaneDistance.ToString("G15"); ele.TryPathTo("Color/Shallow", true, out subEle); ColorShallow.WriteXML(subEle, master); ele.TryPathTo("Color/Deep", true, out subEle); ColorDeep.WriteXML(subEle, master); ele.TryPathTo("Color/Reflection", true, out subEle); ColorReflection.WriteXML(subEle, master); WriteUnused2XML(ele, master); ele.TryPathTo("RainSimulator/Force", true, out subEle); subEle.Value = RainSimulatorForce.ToString("G15"); ele.TryPathTo("RainSimulator/Velocity", true, out subEle); subEle.Value = RainSimulatorVelocity.ToString("G15"); ele.TryPathTo("RainSimulator/Falloff", true, out subEle); subEle.Value = RainSimulatorFalloff.ToString("G15"); ele.TryPathTo("RainSimulator/Dampener", true, out subEle); subEle.Value = RainSimulatorDampener.ToString("G15"); ele.TryPathTo("DisplacementSimulator/StartingSize", true, out subEle); subEle.Value = DisplacementSimulatorStartingSize.ToString("G15"); ele.TryPathTo("DisplacementSimulator/Force", true, out subEle); subEle.Value = DisplacementSimulatorForce.ToString("G15"); ele.TryPathTo("DisplacementSimulator/Velocity", true, out subEle); subEle.Value = DisplacementSimulatorVelocity.ToString("G15"); ele.TryPathTo("DisplacementSimulator/Falloff", true, out subEle); subEle.Value = DisplacementSimulatorFalloff.ToString("G15"); ele.TryPathTo("DisplacementSimulator/Dampener", true, out subEle); subEle.Value = DisplacementSimulatorDampener.ToString("G15"); ele.TryPathTo("RainSimulator/StartingSize", true, out subEle); subEle.Value = RainSimulatorStartingSize.ToString("G15"); ele.TryPathTo("NoiseProperties/Normals/NoiseScale", true, out subEle); subEle.Value = NoisePropertiesNormalsNoiseScale.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerOne/WindDirection", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerOneWindDirection.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerTwo/WindDirection", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerTwoWindDirection.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerThree/WindDirection", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerThreeWindDirection.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerOne/WindSpeed", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerOneWindSpeed.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerTwo/WindSpeed", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerTwoWindSpeed.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerThree/WindSpeed", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerThreeWindSpeed.ToString("G15"); ele.TryPathTo("NoiseProperties/Normals/DepthFalloff/Start", true, out subEle); subEle.Value = NoisePropertiesNormalsDepthFalloffStart.ToString("G15"); ele.TryPathTo("NoiseProperties/Normals/DepthFalloff/End", true, out subEle); subEle.Value = NoisePropertiesNormalsDepthFalloffEnd.ToString("G15"); ele.TryPathTo("FogProperties/AboveWater/FogAmount", true, out subEle); subEle.Value = FogPropertiesAboveWaterFogAmount.ToString("G15"); ele.TryPathTo("NoiseProperties/Normals/UVScale", true, out subEle); subEle.Value = NoisePropertiesNormalsUVScale.ToString("G15"); ele.TryPathTo("FogProperties/UnderWater/FogAmount", true, out subEle); subEle.Value = FogPropertiesUnderWaterFogAmount.ToString("G15"); ele.TryPathTo("FogProperties/UnderWater/FogNearPlaneDistance", true, out subEle); subEle.Value = FogPropertiesUnderWaterFogNearPlaneDistance.ToString("G15"); ele.TryPathTo("FogProperties/UnderWater/FogFarPlaneDistance", true, out subEle); subEle.Value = FogPropertiesUnderWaterFogFarPlaneDistance.ToString("G15"); ele.TryPathTo("WaterProperties/DistortionAmount", true, out subEle); subEle.Value = WaterPropertiesDistortionAmount.ToString("G15"); ele.TryPathTo("WaterProperties/Shininess", true, out subEle); subEle.Value = WaterPropertiesShininess.ToString("G15"); ele.TryPathTo("WaterProperties/ReflectionHDRMult", true, out subEle); subEle.Value = WaterPropertiesReflectionHDRMult.ToString("G15"); ele.TryPathTo("WaterProperties/LightRadius", true, out subEle); subEle.Value = WaterPropertiesLightRadius.ToString("G15"); ele.TryPathTo("WaterProperties/LightBrightness", true, out subEle); subEle.Value = WaterPropertiesLightBrightness.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerOne/UVScale", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerOneUVScale.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerTwo/UVScale", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerTwoUVScale.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerThree/UVScale", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerThreeUVScale.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerOne/AmplitudeScale", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerOneAmplitudeScale.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerTwo/AmplitudeScale", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerTwoAmplitudeScale.ToString("G15"); ele.TryPathTo("NoiseProperties/NoiseLayerThree/AmplitudeScale", true, out subEle); subEle.Value = NoisePropertiesNoiseLayerThreeAmplitudeScale.ToString("G15"); ele.TryPathTo("Damage", true, out subEle); subEle.Value = Damage.ToString(); }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("AnimationType", true, out subEle); subEle.Value = AnimationType.ToString(); ele.TryPathTo("AnimationMultiplier", true, out subEle); subEle.Value = AnimationMultiplier.ToString("G15"); ele.TryPathTo("Reach", true, out subEle); subEle.Value = Reach.ToString("G15"); ele.TryPathTo("Flags1", true, out subEle); subEle.Value = Flags1.ToString(); ele.TryPathTo("GripAnimation", true, out subEle); subEle.Value = GripAnimation.ToString(); ele.TryPathTo("AmmoUse", true, out subEle); subEle.Value = AmmoUse.ToString(); ele.TryPathTo("ReloadAnimation", true, out subEle); subEle.Value = ReloadAnimation.ToString(); ele.TryPathTo("MinSpread", true, out subEle); subEle.Value = MinSpread.ToString("G15"); ele.TryPathTo("Spread", true, out subEle); subEle.Value = Spread.ToString("G15"); ele.TryPathTo("Unknown", true, out subEle); subEle.Value = Unknown.ToHex(); ele.TryPathTo("SightFOV", true, out subEle); subEle.Value = SightFOV.ToString("G15"); ele.TryPathTo("Unknown2", true, out subEle); subEle.Value = Unknown2.ToString("G15"); ele.TryPathTo("Projectile", true, out subEle); Projectile.WriteXML(subEle, master); ele.TryPathTo("BaseVATSToHitChance", true, out subEle); subEle.Value = BaseVATSToHitChance.ToString(); ele.TryPathTo("AttackAnimation", true, out subEle); subEle.Value = AttackAnimation.ToString(); ele.TryPathTo("ProjectileCount", true, out subEle); subEle.Value = ProjectileCount.ToString(); ele.TryPathTo("EmbeddedWeaponActorValue", true, out subEle); subEle.Value = EmbeddedWeaponActorValue.ToString(); ele.TryPathTo("Range/Min", true, out subEle); subEle.Value = MinRange.ToString("G15"); ele.TryPathTo("Range/Max", true, out subEle); subEle.Value = MaxRange.ToString("G15"); ele.TryPathTo("LimbKillBehavior", true, out subEle); subEle.Value = LimbKillBehavior.ToString(); ele.TryPathTo("Flags2", true, out subEle); subEle.Value = Flags2.ToString(); ele.TryPathTo("AttackAnimationMultiplier", true, out subEle); subEle.Value = AttackAnimationMultiplier.ToString("G15"); ele.TryPathTo("FireRate", true, out subEle); subEle.Value = FireRate.ToString("G15"); ele.TryPathTo("ActionPointCost", true, out subEle); subEle.Value = ActionPointCost.ToString("G15"); ele.TryPathTo("Rumble/LeftMotorStrength", true, out subEle); subEle.Value = RumbleLeftMotorStrength.ToString("G15"); ele.TryPathTo("Rumble/RightMotorStrength", true, out subEle); subEle.Value = RumbleRightMotorStrength.ToString("G15"); ele.TryPathTo("Rumble/Duration", true, out subEle); subEle.Value = RumbleDuration.ToString("G15"); ele.TryPathTo("DamageToWeaponMult", true, out subEle); subEle.Value = DamageToWeaponMult.ToString("G15"); ele.TryPathTo("AttackShotsPerSecond", true, out subEle); subEle.Value = AttackShotsPerSecond.ToString("G15"); ele.TryPathTo("ReloadTime", true, out subEle); subEle.Value = ReloadTime.ToString("G15"); ele.TryPathTo("JamTime", true, out subEle); subEle.Value = JamTime.ToString("G15"); ele.TryPathTo("AimArc", true, out subEle); subEle.Value = AimArc.ToString("G15"); ele.TryPathTo("Skill", true, out subEle); subEle.Value = Skill.ToString(); ele.TryPathTo("Rumble/Pattern", true, out subEle); subEle.Value = RumblePattern.ToString(); ele.TryPathTo("Rumble/Wavelength", true, out subEle); subEle.Value = RumbleWavelength.ToString("G15"); ele.TryPathTo("LimbDamageMult", true, out subEle); subEle.Value = LimbDamageMult.ToString("G15"); ele.TryPathTo("ResistanceType", true, out subEle); subEle.Value = ResistanceType.ToString(); ele.TryPathTo("SightUsage", true, out subEle); subEle.Value = SightUsage.ToString("G15"); ele.TryPathTo("SemiAutomaticFireDelay/Min", true, out subEle); subEle.Value = SemiAutomaticFireDelayMin.ToString("G15"); ele.TryPathTo("SemiAutomaticFireDelay/Max", true, out subEle); subEle.Value = SemiAutomaticFireDelayMax.ToString("G15"); ele.TryPathTo("Unknown3", true, out subEle); subEle.Value = Unknown3.ToString("G15"); ele.TryPathTo("Mods/Mod1/Effect", true, out subEle); subEle.Value = Mod1Effect.ToString(); ele.TryPathTo("Mods/Mod2/Effect", true, out subEle); subEle.Value = Mod2Effect.ToString(); ele.TryPathTo("Mods/Mod3/Effect", true, out subEle); subEle.Value = Mod3Effect.ToString(); ele.TryPathTo("Mods/Mod1/ValueA", true, out subEle); subEle.Value = Mod1ValueA.ToString("G15"); ele.TryPathTo("Mods/Mod2/ValueA", true, out subEle); subEle.Value = Mod2ValueA.ToString("G15"); ele.TryPathTo("Mods/Mod3/ValueA", true, out subEle); subEle.Value = Mod3ValueA.ToString("G15"); ele.TryPathTo("PowerAttackAnimation", true, out subEle); subEle.Value = PowerAttackAnimation.ToString(); ele.TryPathTo("StrengthRequirement", true, out subEle); subEle.Value = StrengthRequirement.ToString(); ele.TryPathTo("Unknown4", true, out subEle); subEle.Value = Unknown4.ToString(); ele.TryPathTo("Mods/Mod1/ReloadAnimation", true, out subEle); subEle.Value = Mod1ReloadAnimation.ToString(); ele.TryPathTo("Unknown5", true, out subEle); subEle.Value = Unknown5.ToHex(); ele.TryPathTo("AmmoRegenRate", true, out subEle); subEle.Value = AmmoRegenRate.ToString("G15"); ele.TryPathTo("KillImpulse", true, out subEle); subEle.Value = KillImpulse.ToString("G15"); ele.TryPathTo("Mods/Mod1/ValueB", true, out subEle); subEle.Value = Mod1ValueB.ToString("G15"); ele.TryPathTo("Mods/Mod2/ValueB", true, out subEle); subEle.Value = Mod2ValueB.ToString("G15"); ele.TryPathTo("Mods/Mod3/ValueB", true, out subEle); subEle.Value = Mod3ValueB.ToString("G15"); ele.TryPathTo("ImpulseDistance", true, out subEle); subEle.Value = ImpulseDistance.ToString("G15"); ele.TryPathTo("SkillRequirement", true, out subEle); subEle.Value = SkillRequirement.ToString(); }