Esempio n. 1
0
        public void releaseOneAttackFlowSeq(string skillId, OneAttackFlowSeq seq)
        {
            if (!m_cycleAttackList.ContainsKey(skillId))
            {
                m_cycleAttackList[skillId] = new MList<OneAttackFlowSeq>();
            }

            m_cycleAttackList[skillId].Add(seq);
        }
Esempio n. 2
0
        public void releaseOneAttackFlowSeq(string skillId, OneAttackFlowSeq seq)
        {
            if (!m_cycleAttackList.ContainsKey(skillId))
            {
                m_cycleAttackList[skillId] = new MList <OneAttackFlowSeq>();
            }

            m_cycleAttackList[skillId].Add(seq);
        }
Esempio n. 3
0
        public OneAttackFlowSeq getOneAttackFlowSeq(string skillId)
        {
            OneAttackFlowSeq ret;
            if(m_cycleAttackList.ContainsKey(skillId))
            {
                if(m_cycleAttackList[skillId].Count() > 0)
                {
                    ret = m_cycleAttackList[skillId][0];
                    m_cycleAttackList[skillId].RemoveAt(0);
                    return ret;
                }
            }

            string _path = string.Format("{0}{1}", Ctx.m_instance.m_cfg.m_pathLst[(int)ResPathType.ePathSkillAction], "1000.xml");
            SkillActionRes res = Ctx.m_instance.m_skillActionMgr.getAndSyncLoad<SkillActionRes>(_path);
            ret = new OneAttackFlowSeq();
            ret.initAttackFlowSeq(res.attackActionSeq);

            return ret;
        }
Esempio n. 4
0
        public OneAttackFlowSeq getOneAttackFlowSeq(string skillId)
        {
            OneAttackFlowSeq ret;

            if (m_cycleAttackList.ContainsKey(skillId))
            {
                if (m_cycleAttackList[skillId].Count() > 0)
                {
                    ret = m_cycleAttackList[skillId][0];
                    m_cycleAttackList[skillId].RemoveAt(0);
                    return(ret);
                }
            }

            string         _path = string.Format("{0}{1}", Ctx.m_instance.m_cfg.m_pathLst[(int)ResPathType.ePathSkillAction], "1000.xml");
            SkillActionRes res   = Ctx.m_instance.m_skillActionMgr.getAndSyncLoad <SkillActionRes>(_path);

            ret = new OneAttackFlowSeq();
            ret.initAttackFlowSeq(res.attackActionSeq);

            return(ret);
        }