Пример #1
0
        public override void ReadXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("ResponseData", false, out subEle))
            {
                if (ResponseData == null)
                {
                    ResponseData = new ResponseData();
                }

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

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

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

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

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

                ListenerAnimation.ReadXML(subEle, master);
            }
        }