public void CopyTo(AIActionTable result) { if (result == null) { return; } result.actions.Clear(); for (int index = 0; index < this.actions.Count; ++index) { AIAction aiAction = new AIAction(); aiAction.skill = this.actions[index].skill; aiAction.type = this.actions[index].type; aiAction.turn = this.actions[index].turn; aiAction.notBlock = this.actions[index].notBlock; aiAction.noExecAct = this.actions[index].noExecAct; aiAction.nextActIdx = this.actions[index].nextActIdx; aiAction.nextTurnAct = this.actions[index].nextTurnAct; aiAction.turnActIdx = this.actions[index].turnActIdx; if (this.actions[index].cond != null) { aiAction.cond = new SkillLockCondition(); this.actions[index].cond.CopyTo(aiAction.cond); } result.actions.Add(aiAction); } result.looped = this.looped; }
public void CopyTo(AIActionTable result) { if (result == null) { return; } result.actions.Clear(); for (int index = 0; index < this.actions.Count; ++index) { result.actions.Add(new AIAction() { skill = this.actions[index].skill, type = this.actions[index].type, turn = this.actions[index].turn }); } result.looped = this.looped; }