override protected void initImpl(ResItem res) { string text = res.getText(GetPath()); m_attackActionSeq = new AttackActionSeq(); m_attackActionSeq.parseXml(text); base.initImpl(res); }
// 创建攻击流程序列 public void initAttackFlowSeq(AttackActionSeq actionSeq) { AttackSeqItem seqItem = null; foreach(var actionItem in actionSeq.itemList.list) { seqItem = new AttackSeqItem(this); m_attackItemList.Add(seqItem); seqItem.attackActionNode = actionItem.attackActionNode; } }
// 创建攻击流程序列 public void initAttackFlowSeq(AttackActionSeq actionSeq) { AttackSeqItem seqItem = null; foreach (var actionItem in actionSeq.itemList.list) { seqItem = new AttackSeqItem(this); m_attackItemList.Add(seqItem); seqItem.attackActionNode = actionItem.attackActionNode; } }
// 创建攻击流程序列 public void initHurtFlowSeq(AttackActionSeq actionSeq) { HurtSeqItem seqItem = null; foreach(var actionItem in actionSeq.itemList.list) { seqItem = new HurtSeqItem(this); m_hurtSeqItem.Add(seqItem); if (actionItem.hurtActionNode != null) { seqItem.hurtActionNode = actionItem.hurtActionNode; } } }
// 创建攻击流程序列 public void initHurtFlowSeq(AttackActionSeq actionSeq) { HurtSeqItem seqItem = null; foreach (var actionItem in actionSeq.itemList.list) { seqItem = new HurtSeqItem(this); m_hurtSeqItem.Add(seqItem); if (actionItem.hurtActionNode != null) { seqItem.hurtActionNode = actionItem.hurtActionNode; } } }