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