public void Save(XmlDocument xmlDocument, XmlNode target) { XmlNode fadeTag = XmlParser.CreateChildTag(xmlDocument, target, AudioConstants.XML_FADE_TAG); XmlParser.AddAttribute(xmlDocument, fadeTag, AudioConstants.XML_ATTRIBUTE_FADE_MODE, this.PlayFadeMode.ToString()); XmlParser.AddAttribute(xmlDocument, fadeTag, AudioConstants.XML_ATTRIBUTE_FADE_DURATION, this.PlayFadeDuration.ToString()); }
public void Save(XmlDocument xmlDocument, XmlNode target) { XmlParser.AddAttribute(xmlDocument, target, AudioConstants.XML_ATTRIBUTE_MUSIC_COMPRESSED_VOLUME, this.CompressedMusicVolume.ToString()); XmlParser.AddAttribute(xmlDocument, target, AudioConstants.XML_ATTRIBUTE_SOUND_COMPRESSED_VOLUME, this.CompressedSoundVolume.ToString()); XmlParser.AddAttribute(xmlDocument, target, AudioConstants.XML_ATTRIBUTE_SOUND_SOURCES_COUNT, this.MaxSoundSources.ToString()); XmlNode fadeTag = XmlParser.CreateChildTag(xmlDocument, target, AudioConstants.XML_FADE_TAG); XmlParser.AddAttribute(xmlDocument, fadeTag, AudioConstants.XML_ATTRIBUTE_FADE_MODE, this.FadeMode.ToString()); XmlParser.AddAttribute(xmlDocument, fadeTag, AudioConstants.XML_ATTRIBUTE_FADE_DURATION, this.FadeDuration.ToString()); }