protected Trigger(System.Xml.XmlReader reader) { StopMusic = reader.GetBooleanAttribute("stopMusic"); StopSounds = reader.GetBooleanAttribute("stopSounds"); TargetElementId = reader.GetIntegerAttribute("targetId"); CrossFadeMusic = reader.GetBooleanAttributeOrDefault("crossFadeMusic", false); FadeMusic = reader.GetBooleanAttributeOrDefault("fadeMusic", false); FadeMusicTime = reader.GetIntegerAttributeOrDefault("crossFadeMusicTime", 0); FadeSounds = reader.GetBooleanAttributeOrDefault("fadeSounds", false); FadeSoundTime = reader.GetIntegerAttributeOrDefault("fadeSoundTime", 0); }
public TagCommand(System.Xml.XmlReader reader) : base(reader) { m_CategoryId = reader.GetIntegerAttribute("categoryId"); m_TagId = reader.GetIntegerAttribute("tagId"); m_AddTag = reader.GetBooleanAttribute("addTag"); ReadToEndOfElement(reader); }