コード例 #1
0
        public override void Read(XmlNode os)
        {
            base.Read(os);
            foreach (XmlNode current in XmlObject.GetChilds(os))
            {
                switch (current.Name)
                {
                case "Npc":
                    this.Npc = new TaskNpc();
                    this.Npc.Read(current);
                    break;

                case "Cmd":;
                    this.Cmd = XmlObject.ReadString(current);
                    break;

                case "AnimName":
                    this.AnimName = XmlObject.ReadString(current);
                    break;
                }
            }
        }
コード例 #2
0
ファイル: SubTalk.cs プロジェクト: mengtest/demo_tankWar3D
        public override void Read(XmlNode os)
        {
            base.Read(os);
            foreach (XmlNode current in XmlObject.GetChilds(os))
            {
                switch (current.Name)
                {
                case "Dialogs":
                    XmlObject.GetChilds(current).ForEach(delegate(XmlNode pNode)
                    {
                        TaskDialog data = new TaskDialog();
                        data.Read(pNode);
                        Dialogs.Add(data);
                    });
                    break;

                case "Npc":
                    this.Npc = new TaskNpc();
                    this.Npc.Read(current);
                    break;
                }
            }
        }