spaceconquest.SlaveDriver.Receive C# (CSharp) 메소드

Receive() 공개 메소드

public Receive ( List cl ) : void
cl List
리턴 void
        public void Receive(List<Command> cl)
        {
            Console.WriteLine("Received " + cl.Count + " Commands");
            cl.Reverse(); //reverse the list because we want the most recent command to each unit to be the one recorded
            foreach (Command c in cl)
            {
                commands.Add(c);
            }
        }