foreach(v1,v2,v3) { createnpc($$); wait(100); };
Inheritance: 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);
        }