Esempio n. 1
0
        public TcpController(Regulus.Utility.Command command, Regulus.Utility.Console.IViewer view)
        {
            _Command = command;
            _View = view;

            _Machine = new Game.StageMachine();
        }
Esempio n. 2
0
        public RemotingController(Regulus.Utility.Command command, Regulus.Utility.Console.IViewer view)
        {
            _View    = view;
            _User    = new User();
            _Updater = new Regulus.Utility.Updater();

            _Command = command;
        }
Esempio n. 3
0
        public BatchCommander(Regulus.Utility.Command command)
        {
            _Timer = new Regulus.Utility.TimeCounter();

            this._Command = command;

            _Command.Register("1" , _1);
            _CommandStrings = new Queue<CommandString>();
        }
Esempio n. 4
0
        public BatchCommander(Regulus.Utility.Command command)
        {
            _Timer = new Regulus.Utility.TimeCounter();

            this._Command = command;


            _Command.Register("1", _1);
            _CommandStrings = new Queue <CommandString>();
        }
Esempio n. 5
0
        public BatchCommander(Regulus.Utility.Command command, Regulus.Utility.ConsoleViewer viewer)
        {
            _Timer = new Regulus.Utility.TimeCounter();

            this._Command = command;

            _Command.Register("1" , _1);
            _Command.Register("2", _2);
            _Command.Register("3", _3);

            _CommandStrings = new Queue<CommandString>();
        }
Esempio n. 6
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[] { } });
        }
Esempio n. 7
0
 public static void Register <TR>(this Regulus.Utility.Command instance, string command, System.Func <TR> executer)
 {
     instance.Register(command, executer, _Empty);
 }
Esempio n. 8
0
 public StageStart(Regulus.Utility.Command command , Regulus.Utility.Console.IViewer view)
 {
     _View = view;
     _Command = command;
 }