public override IStoryCommand Clone() { ForeachCommand retCmd = new ForeachCommand(); for (int i = 0; i < m_LoadedIterators.Count; i++) { retCmd.m_LoadedIterators.Add(m_LoadedIterators[i].Clone()); } for (int i = 0; i < m_LoadedCommands.Count; i++) { retCmd.m_LoadedCommands.Add(m_LoadedCommands[i].Clone()); } retCmd.IsCompositeCommand = true; return retCmd; }
protected override IStoryCommand CloneCommand() { ForeachCommand retCmd = new ForeachCommand(); retCmd.m_LocalInfoIndex = m_LocalInfoIndex; for (int i = 0; i < m_LoadedIterators.Count; i++) { retCmd.m_LoadedIterators.Add(m_LoadedIterators[i].Clone()); } for (int i = 0; i < m_LoadedCommands.Count; i++) { retCmd.m_LoadedCommands.Add(m_LoadedCommands[i].Clone()); } return(retCmd); }
public override IStoryCommand Clone() { ForeachCommand retCmd = new ForeachCommand(); for (int i = 0; i < m_LoadedIterators.Count; i++) { retCmd.m_LoadedIterators.Add(m_LoadedIterators[i].Clone()); } for (int i = 0; i < m_LoadedCommands.Count; i++) { retCmd.m_LoadedCommands.Add(m_LoadedCommands[i].Clone()); } retCmd.IsCompositeCommand = true; return(retCmd); }