public void releaseOneAttackFlowSeq(string skillId, OneAttackFlowSeq seq) { if (!m_cycleAttackList.ContainsKey(skillId)) { m_cycleAttackList[skillId] = new MList<OneAttackFlowSeq>(); } m_cycleAttackList[skillId].Add(seq); }
public void releaseOneAttackFlowSeq(string skillId, OneAttackFlowSeq seq) { if (!m_cycleAttackList.ContainsKey(skillId)) { m_cycleAttackList[skillId] = new MList <OneAttackFlowSeq>(); } m_cycleAttackList[skillId].Add(seq); }
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; }
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); }