public void Save(XmlDocument xmlDocument, XmlNode target) { XmlParser.AddAttribute(xmlDocument, target, AudioConstants.XML_ATTRIBUTE_USE_MUSIC, this.UseMusic.ToString()); XmlParser.AddAttribute(xmlDocument, target, AudioConstants.XML_ATTRIBUTE_USE_SOUND, this.UseSound.ToString()); XmlParser.AddAttribute(xmlDocument, target, AudioConstants.XML_ATTRIBUTE_MUSIC_VOLUME, this.MusicVolume.ToString()); XmlParser.AddAttribute(xmlDocument, target, AudioConstants.XML_ATTRIBUTE_SOUND_VOLUME, this.SoundVolume.ToString()); }
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()); }