public override IStoryCommand Clone() { WaitLocalMessageHandlerCommand cmd = new WaitLocalMessageHandlerCommand(); for (int i = 0; i < m_MsgIds.Count; i++) { cmd.m_MsgIds.Add(m_MsgIds[i].Clone()); } cmd.m_SetVar = m_SetVar.Clone(); cmd.m_SetVal = m_SetVal.Clone(); cmd.m_TimeoutVal = m_TimeoutVal.Clone(); cmd.m_TimeoutSetVar = m_TimeoutSetVar.Clone(); cmd.m_TimeoutSetVal = m_TimeoutSetVal.Clone(); cmd.m_HaveSet = m_HaveSet; return(cmd); }
public override IStoryCommand Clone() { WaitLocalMessageHandlerCommand cmd = new WaitLocalMessageHandlerCommand(); for (int i = 0; i < m_MsgIds.Count; i++) { cmd.m_MsgIds.Add(m_MsgIds[i].Clone()); } cmd.m_SetVar = m_SetVar.Clone(); cmd.m_SetVal = m_SetVal.Clone(); cmd.m_TimeoutVal = m_TimeoutVal.Clone(); cmd.m_TimeoutSetVar = m_TimeoutSetVar.Clone(); cmd.m_TimeoutSetVal = m_TimeoutSetVal.Clone(); cmd.m_HaveSet = m_HaveSet; return cmd; }