Esempio n. 1
0
        public BatchCommander(Regulus.Utility.Command command, Regulus.Utility.ConsoleViewer viewer)
        {
            _Timer = new Regulus.Utility.TimeCounter();

            command.Register("1", _1);
            command.Register("2", _2);
            command.Register("3", _3);
            command.Register("4", _4);

            this._Command = command;

            _CommandStrings = new Queue<CommandString>();
            _CommandStrings.Enqueue(new CommandString() { Name = "standalong" , Args = new string[]{}});

            _CommandStrings.Enqueue(new CommandString() { Name = "spawncontroller", Args = new string[] { "茄子"} });
            _CommandStrings.Enqueue(new CommandString() { Name = "selectcontroller", Args = new string[] { "茄子" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "ready", Args = new string[] { } });
            _CommandStrings.Enqueue(new CommandString() { Name = "login", Args = new string[] { "1" ,"1" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "selectactor", Args = new string[] {"123" } });

            _CommandStrings.Enqueue(new CommandString() { Name = "spawncontroller", Args = new string[] { "彥龍" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "selectcontroller", Args = new string[] { "彥龍" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "ready", Args = new string[] {} });
            _CommandStrings.Enqueue(new CommandString() { Name = "login", Args = new string[] { "2", "1" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "selectactor", Args = new string[] { "456" } });

            /*_CommandStrings.Enqueue(new CommandString() { Name = "spawncontroller", Args = new string[] { "茄子1" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "selectcontroller", Args = new string[] { "茄子1" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "login", Args = new string[] { "1", "1" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "selectactor", Args = new string[] { "123" } });

            _CommandStrings.Enqueue(new CommandString() { Name = "spawncontroller", Args = new string[] { "彥龍1" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "selectcontroller", Args = new string[] { "彥龍1" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "login", Args = new string[] { "2", "1" } });
            _CommandStrings.Enqueue(new CommandString() { Name = "selectactor", Args = new string[] { "456" } });*/

            _CommandStrings.Enqueue(new CommandString() { Name = "inbattle", Args = new string[] { } });
        }