Пример #1
0
 public void SetHasTriggerTask(string taskId)// get has trigger task from server
 {
     triggerTaskIdList.Clear();
     if (!string.IsNullOrEmpty(taskId))
     {
         triggerTaskIdList = GameMethod.ResolveToIntList(taskId, ',');
     }
 }
    public ReadGuideKillHeroTaskConfig(string xmlFilePath)
    {
        ResourceUnit xmlfileUnit = ResourcesManager.Instance.loadImmediate(xmlFilePath, ResourceType.ASSET);
        TextAsset    xmlfile     = xmlfileUnit.Asset as TextAsset;

        if (!xmlfile)
        {
            Debug.LogError(" error infos: 没有找到指定的xml文件:" + xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("killhero").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)//(XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("id") == null)
            {
                continue;
            }

            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("id").InnerText;

            GuideKillHeroInfo info = new GuideKillHeroInfo();
            info.TaskId = Convert.ToInt32(typeName);
            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "deadnpcid":
                    info.mDeadnpcid = GameMethod.ResolveToIntList(xEle.InnerText);
                    break;

                case "times":
                    info.mTimes = Convert.ToInt32(xEle.InnerText);
                    break;
                }
                #endregion
            }
            ConfigReader.guideKillHeroXmlInfoDict.Add(info.TaskId, info);
        }
    }
Пример #3
0
    public ReadHeroConfig(string xmlFilePath)
    {
        //TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;
        ResourceUnit xmlfileUnit = ResourcesManager.Instance.loadImmediate(xmlFilePath, ResourceType.ASSET);
        TextAsset    xmlfile     = xmlfileUnit.Asset as TextAsset;

        if (!xmlfile)
        {
            //Debug.LogError(" error infos: 没有找到指定的xml文件:"+xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("herocfg ").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)     //XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("un32ID") == null)
            {
                continue;
            }

            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("un32ID").InnerText;

            HeroConfigInfo HeroSelectInfo = new HeroConfigInfo();
            HeroSelectInfo.HeroName = Convert.ToString(typeName);
            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "szNOStr":
                    HeroSelectInfo.HeroNum = Convert.ToInt32(xEle.InnerText);
                    break;

                case "eMagicCate":
                    HeroSelectInfo.HeroMgicCate = Convert.ToInt32(xEle.InnerText);
                    break;

                case "XuetiaoHeight":
                    HeroSelectInfo.HeroXueTiaoHeight = Convert.ToInt32(xEle.InnerText);
                    break;

                case "n32AttackDist":
                    HeroSelectInfo.HeroAtkDis = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseExp":
                    HeroSelectInfo.HeroBaseExp = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BasePhyAttPower":
                    HeroSelectInfo.HeroPhyAtt = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseMagAttPower":
                    HeroSelectInfo.HeroMagAtt = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BasePhyDef":
                    HeroSelectInfo.HeroPhyDef = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseMagDef":
                    HeroSelectInfo.HeroMagDef = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseMoveSpeed":
                    HeroSelectInfo.HeroMoveSpeed = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseMoveSpeedScaling":
                    HeroSelectInfo.n32BaseMoveSpeedScaling = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseAttackCD":
                    HeroSelectInfo.HeorBaseAtkCd = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseMaxHP":
                    HeroSelectInfo.HeroMaxHp = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseMaxMP":
                    HeroSelectInfo.HeroMaxMp = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseHPRecover":
                    HeroSelectInfo.HeroHpRecover = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseMPRecover":
                    HeroSelectInfo.HeroMpRecover = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32BaseReliveTime":
                    HeroSelectInfo.HeroRelieveTime = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32ExpGrowth":
                    HeroSelectInfo.HeroExpGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32PhyAttGrowth":
                    HeroSelectInfo.HeroPhyAttGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32MagAttGrowth":
                    HeroSelectInfo.HeroMagAttGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32PhyDefGrowth":
                    HeroSelectInfo.HeroPhyDefGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32MagDefGrowth":
                    HeroSelectInfo.HeroMagDefGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32AttackCDGrowth":
                    HeroSelectInfo.HeroAtkCdGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "32MaxHPGrowth":
                    HeroSelectInfo.HeroMaxHpGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "32MaxMPGrowth":
                    HeroSelectInfo.HeroMaxMpGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32HPRecoverGrowth":
                    HeroSelectInfo.HeroHpRecoverGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32MPRecoverGrowth":
                    HeroSelectInfo.HeroHpRecoverGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32ReliveGrowth":
                    HeroSelectInfo.HeroHpRecoverGrowth = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32CPRecover":
                    HeroSelectInfo.HeroCpRecover = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32CollideRadious":
                    HeroSelectInfo.HeroCollideRadious = Convert.ToSingle(xEle.InnerText);
                    break;

                case "un32DeathSould":
                    HeroSelectInfo.HeroDeathSould = Convert.ToString(xEle.InnerText);
                    break;

                case "un32WalkSound":
                    HeroSelectInfo.un32WalkSound = xEle.InnerText;
                    break;

                case "un32Script1":
                    HeroSelectInfo.HeroScript1 = Convert.ToString(xEle.InnerText);
                    break;

                case "n32Script1Rate":
                    HeroSelectInfo.HeroScript1Rate = Convert.ToString(xEle.InnerText);
                    break;

                case "un32SkillType1":
                    HeroSelectInfo.HeroSkillType1 = Convert.ToInt32(xEle.InnerText);
                    break;

                case "un32SkillType2":
                    HeroSelectInfo.HeroSkillType2 = Convert.ToInt32(xEle.InnerText);
                    break;

                case "un32SkillType3":
                    HeroSelectInfo.HeroSkillType3 = Convert.ToInt32(xEle.InnerText);
                    break;

                case "un32SkillType4":
                    HeroSelectInfo.HeroSkillType4 = Convert.ToInt32(xEle.InnerText);
                    break;

                case "un32SkillType5":
                    HeroSelectInfo.HeroSkillType5 = Convert.ToInt32(xEle.InnerText);
                    break;

                case "un32SkillType6":
                    HeroSelectInfo.HeroSkillType6 = Convert.ToInt32(xEle.InnerText);
                    break;

                case "n32LockRadious":
                    HeroSelectInfo.n32LockRadious = Convert.ToSingle(xEle.InnerText);
                    break;

                case "n32RandomAttack":
                    HeroSelectInfo.n32RandomAttack = GameDefine.GameMethod.ResolveToStrList(xEle.InnerText);
                    break;

                case "un32PreItem":
                {
                    string str = Convert.ToString(xEle.InnerText);
                    if (str.CompareTo("0") != 0)
                    {
                        HeroSelectInfo.HeroPreEquip = GameMethod.ResolveToIntList(str, ',');
                    }
                }
                break;

                case "un32MidItem":
                {
                    string str = Convert.ToString(xEle.InnerText);
                    if (str.CompareTo("0") != 0)
                    {
                        HeroSelectInfo.HeroMidEquip = GameMethod.ResolveToIntList(str, ',');
                    }
                }
                break;

                case "un32ProItem":
                {
                    string str = Convert.ToString(xEle.InnerText);
                    if (str.CompareTo("0") != 0)
                    {
                        HeroSelectInfo.HeroLatEquip = GameMethod.ResolveToIntList(str, ',');
                    }
                }
                break;

                case "HeroKind":
                {
                    string     str  = Convert.ToString(xEle.InnerText);
                    List <int> list = GameMethod.ResolveToIntList(str, ',');

                    for (int j = 0; j < list.Count; j++)
                    {
                        HeroSelectInfo.heroKind.Add((HeroType)list.ElementAt(j));
                    }
                }
                break;

                case "un32SkillTypeP":
                    HeroSelectInfo.HeroSkillTypeP = Convert.ToInt32(xEle.InnerText);
                    break;
                }
                #endregion
            }
            ConfigReader.heroXmlInfoDict.Add(HeroSelectInfo.HeroNum, HeroSelectInfo);
        }
    }
    public ReadHeroHeadConfig(string xmlFilePath)
    {
        //TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;
        ResourceUnit xmlfileUnit = ResourcesManager.Instance.loadImmediate(xmlFilePath, ResourceType.ASSET);
        TextAsset    xmlfile     = xmlfileUnit.Asset as TextAsset;

        if (!xmlfile)
        {
            Debug.LogError(" error infos: 没有找到指定的xml文件:" + xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("HeadSelect").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)//XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("HeadID") == null)
            {
                continue;
            }
            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("HeadID").InnerText;

            HeadSelectConfigInfo HeadSelectInfo = new HeadSelectConfigInfo();
            HeadSelectInfo.HeroHeadID = Convert.ToInt32(typeName);
            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "Head_Name":
                    HeadSelectInfo.HeroHeadName = Convert.ToString(xEle.InnerText);
                    break;

                case "Head_Type":
                    HeadSelectInfo.HeroHeadType = GameMethod.ResolveToIntList(xEle.InnerText);
                    break;

                case "Atlas":
                    HeadSelectInfo.HeroHeadAtlas = Convert.ToString(xEle.InnerText);
                    break;

                case "Atlas_Num":
                    HeadSelectInfo.HeroHeadAtlas_Num = xEle.InnerText;
                    break;

                case "Used_Condition":
                    HeadSelectInfo.HeroUsedCondition = Convert.ToInt32(xEle.InnerText);
                    break;

                case "Account_Level":
                    HeadSelectInfo.HeroUsedLevel = Convert.ToInt32(xEle.InnerText);
                    break;
                }

                #endregion
            }
            ConfigReader.headSelectXmlInfoDict.Add(HeadSelectInfo.HeroHeadID, HeadSelectInfo);
        }
    }
    public ReadGuideKillNpcTaskConfig(string xmlFilePath)
    {
        //TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;
        ResourceUnit xmlfileUnit = ResourcesManager.Instance.loadImmediate(xmlFilePath, ResourceType.ASSET);
        TextAsset    xmlfile     = xmlfileUnit.Asset as TextAsset;

        if (!xmlfile)
        {
            Debug.LogError(" error infos: 没有找到指定的xml文件:" + xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("killnpc").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)     //(XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("id") == null)
            {
                continue;
            }

            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("id").InnerText;

            CKillTask killInfo = new CKillTask();
            killInfo.TaskId   = Convert.ToInt32(typeName);
            killInfo.TaskType = GuideTaskType.KillTask;
            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "deadtype":
                    killInfo.DeadType = (DeadType)Convert.ToInt32(xEle.InnerText);
                    break;

                case "deadnpcid":
                    killInfo.DeadId = Convert.ToInt32(xEle.InnerText);
                    break;

                case "times":
                    killInfo.DeadTimes = Convert.ToInt32(xEle.InnerText);
                    break;

                case "deadreason":
                    string reason = Convert.ToString(xEle.InnerText);
                    if (reason.IndexOf(',') != -1)
                    {
                        killInfo.KillReason = GameMethod.ResolveToIntList(reason);
                    }
                    else
                    {
                        killInfo.KillReason.Add(Convert.ToInt32(reason));
                    }
                    break;
                }
                #endregion
            }
            CTaskBase.killTaskDic.Add(killInfo.TaskId, killInfo);
        }
    }
Пример #6
0
    public ReadHeroBuyConfig(string xmlFilePath)
    {
        //TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;
        ResourceItem xmlfileUnit = ResourcesManager.Instance.loadImmediate(xmlFilePath, ResourceType.ASSET);
        TextAsset    xmlfile     = xmlfileUnit.Asset as TextAsset;

        if (!xmlfile)
        {
            Debug.LogError(" error infos: 没有找到指定的xml文件:" + xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("HeroBuyCfg ").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)     //XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("un32ID") == null)
            {
                continue;
            }

            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("un32ID").InnerText;

            HeroBuyConfigInfo HeroBuyInfo = new HeroBuyConfigInfo();
            HeroBuyInfo.GoodsId = Convert.ToInt32(typeName);
            string un8ConsumeType = "";
            string n32Price       = "";
            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "Name":
                    HeroBuyInfo.Name = Convert.ToString(xEle.InnerText);
                    break;

                case "HeroKind":
                    HeroBuyInfo.HeroKind = GameMethod.ResolveToIntList(xEle.InnerText);
                    break;

                case "un8ConsumeType":
                    un8ConsumeType = Convert.ToString(xEle.InnerText);
                    break;

                case "n32Price":
                    n32Price = Convert.ToString(xEle.InnerText);
                    break;

                case "UnlockHeroID":
                    HeroBuyInfo.UnlockHeroID = Convert.ToInt32(xEle.InnerText);
                    break;

                case "Time":
                    HeroBuyInfo.Time = Convert.ToInt32(xEle.InnerText);
                    break;

                case "DefaultSkin":
                    HeroBuyInfo.DefaultSkin = Convert.ToInt32(xEle.InnerText);
                    break;

                case "DefaultIcon":
                    HeroBuyInfo.DefaultIcon = Convert.ToString(xEle.InnerText);
                    break;

                case "OnSaleSkins":
                    HeroBuyInfo.OnSaleSkins = GameMethod.ResolveToStrList(xEle.InnerText);
                    break;

                case "bIsShowInShop":
                    HeroBuyInfo.IsShowShop = Convert.ToBoolean(Convert.ToInt32(xEle.InnerText));
                    break;

                case "bIsShowInHeroInfo":
                    HeroBuyInfo.bIsShowInHeroInfo = Convert.ToBoolean(Convert.ToInt32(xEle.InnerText));
                    break;
                }
                #endregion
            }
            HeroBuyInfo.Consume = GameMethod.ResolveToIntDict(un8ConsumeType, n32Price);
            ConfigReader.heroBuyXmlInfoDict.Add(HeroBuyInfo.GoodsId, HeroBuyInfo);
        }
    }
Пример #7
0
    public ReadAdvancedGuideConfig(string xmlFilePath)
    {
        //TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;
        ResourceUnit xmlfileUnit = ResourcesManager.Instance.loadImmediate(xmlFilePath, ResourceType.ASSET);
        TextAsset    xmlfile     = xmlfileUnit.Asset as TextAsset;

        if (!xmlfile)
        {
            Debug.LogError(" error infos: 没有找到指定的xml文件:" + xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("LowerGuide").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)//(XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("Taskid") == null)
            {
                continue;
            }

            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("Taskid").InnerText;

            AdvancedGuideInfo info = new AdvancedGuideInfo();
            info.Taskid = Convert.ToInt32(typeName);
            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "Title":
                    info.Title = xEle.InnerText;
                    break;

                case "Event":
                    info.Event = (GuideEventType)Convert.ToInt32(xEle.InnerText);
                    break;

                case "EventValue0":
                    info.EventValue0 = GameMethod.ResolveToVector3(xEle.InnerText);
                    break;

                case "EventValue1":
                    info.EventValue1 = GameMethod.ResolveToIntList(xEle.InnerText);
                    break;

                case "EventValue2":
                    info.EventValue2 = Convert.ToInt32(xEle.InnerText);
                    break;

                case "Content":
                    info.Content = xEle.InnerText;
                    break;

                case "CDTime":
                    info.CDTime = float.Parse(xEle.InnerText, System.Globalization.CultureInfo.InvariantCulture.NumberFormat);
                    break;

                case "LimitTime":
                    info.LimitTime = Convert.ToInt32(xEle.InnerText);
                    break;

                case "SmallTitle":
                    info.SmallTitle = xEle.InnerText;
                    break;

                case "PrefabID":
                    info.PrefabID = xEle.InnerText;
                    break;

                case "PicID":
                    info.PicID = xEle.InnerText;
                    break;
                }
                #endregion
            }
            ConfigReader.advancedGuideInfoDict.Add(info.Taskid, info);
        }
    }
    public ReadGuideManagerTaskConfig(string xmlFilePath)
    {
        //TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;
        ResourceItem xmlfileUnit = ResourcesManager.Instance.loadImmediate(xmlFilePath, ResourceType.ASSET);
        TextAsset    xmlfile     = xmlfileUnit.Asset as TextAsset;

        if (!xmlfile)
        {
            Debug.LogError(" error infos: 没有找到指定的xml文件:" + xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("taskmanager").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)     //(XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("id") == null)
            {
                continue;
            }

            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("id").InnerText;

            GuideMgrInfo mgrInfo = new GuideMgrInfo();
            mgrInfo.TaskId = Convert.ToInt32(typeName);

            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "childtype":
                    mgrInfo.ChildTaskType = GameMethod.ResolveToIntList(xEle.InnerText);
                    break;

                case "childid":
                    mgrInfo.ChildTaskId = GameMethod.ResolveToIntList(xEle.InnerText);
                    break;

                case "endtype":
                    mgrInfo.TaskEndType = (TaskCheckType)Convert.ToInt32(xEle.InnerText);
                    break;

                case "endid":
                    mgrInfo.EndTaskChildId = Convert.ToInt32(xEle.InnerText);
                    break;

                case "nexttaskid":
                    mgrInfo.NextTaskId = Convert.ToInt32(xEle.InnerText);
                    break;

                case "close":
                    mgrInfo.mToServerType = Convert.ToInt32(xEle.InnerText);
                    break;

                case "tasktype":
                    mgrInfo.mTasktype = Convert.ToInt32(xEle.InnerText);
                    break;

                case "moduleend":
                    mgrInfo.moduleend = Convert.ToInt32(xEle.InnerText) == 1 ? true : false;
                    break;
                }
                #endregion
            }
            ConfigReader.guideTaskMgrInfoDict.Add(mgrInfo.TaskId, mgrInfo);
        }
    }
    public ReadIGuideTaskManagerConfig(string xmlFilePath)
    {
        //TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;
        ResourceItem xmlfileUnit = ResourcesManager.Instance.loadImmediate(xmlFilePath, ResourceType.ASSET);
        TextAsset    xmlfile     = xmlfileUnit.Asset as TextAsset;

        if (!xmlfile)
        {
            Debug.LogError(" error infos: 没有找到指定的xml文件:" + xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("UiTaskmanager").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)//(XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("id") == null)
            {
                continue;
            }

            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("id").InnerText;

            IGuideManagerData managerInfo = new IGuideManagerData();
            managerInfo.TaskId        = Convert.ToInt32(typeName);
            managerInfo.IsTriggerTask = false;
            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "sontaskid":
                    managerInfo.SonTaskList = GameMethod.ResolveToIntList(Convert.ToString(xEle.InnerText), ';');
                    break;

                case "trigger":
                    managerInfo.TriggerInterface = Convert.ToInt32(xEle.InnerText);
                    break;

                case "NextID":
                    managerInfo.NextTaskId = GameMethod.ResolveToIntList(Convert.ToString(xEle.InnerText), ';');
                    break;

                case "istrigger":
                    managerInfo.IsTriggerTask = (Convert.ToInt32(xEle.InnerText) == 1) ? true : false;
                    break;
                }
                #endregion
            }
            if (managerInfo.IsTriggerTask)
            {
                ConfigReader.iTriggerGuideManagerDatalXmlInfoDict.Add(managerInfo.TaskId, managerInfo);
            }
            else
            {
                ConfigReader.iGuideManagerDatalXmlInfoDict.Add(managerInfo.TaskId, managerInfo);
            }
        }
    }