protected override IStoryCommand CloneCommand() { HighlightPromptCommand cmd = new HighlightPromptCommand(); cmd.m_UserGuid = m_UserGuid.Clone(); cmd.m_DictId = m_DictId.Clone(); for (int i = 0; i < m_DictArgs.Count; ++i) { IStoryValue val = m_DictArgs[i]; cmd.m_DictArgs.Add(val.Clone()); } return(cmd); }
public override IStoryCommand Clone() { HighlightPromptCommand cmd = new HighlightPromptCommand(); cmd.m_ObjId = m_ObjId.Clone(); cmd.m_DictId = m_DictId.Clone(); for (int i = 0; i < m_DictArgs.Count; ++i) { IStoryValue<object> val = m_DictArgs[i]; cmd.m_DictArgs.Add(val.Clone()); } return cmd; }