foreach(v1,v2,v3) { createnpc($$); wait(100); };
상속: AbstractStoryCommand
예제 #1
0
 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;
 }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }