Example #1
0
 public Framework(Console.IViewer viewer, Console.IInput input)
 {
     _Viewer  = viewer;
     _Input   = input;
     _Loops   = new Updater();
     _Console = new Console(_Input, _Viewer);
 }
Example #2
0
 public Framework(Console.IViewer viewer, Console.IInput input, Console console)
 {
     _Viewer  = viewer;
     _Input   = input;
     _Loops   = new Updater();
     _Console = console;
 }
 public Console()
 {
     _Messages    = new System.Collections.Generic.Queue <string>();
     _Input       = "";
     _LastMessage = "";
     _ScrollView  = Vector2.zero;
     _Console     = new Regulus.Utility.Console(this, this);
 }
 public Console()
 {
     _Messages = new System.Collections.Generic.Queue<string>();
     _Input = "";
     _LastMessage = "";
     _ScrollView = Vector2.zero;
     _Console = new Regulus.Utility.Console(this ,this);
 }
Example #5
0
        private void _Stop()
        {
            _Runable = false;
            _Loops.Shutdown();
            _StageMachine.Termination();
            _Loops = null;

            _StageMachine = null;
            _Viewer       = null;
            _Input        = null;
            _Console      = null;
        }
Example #6
0
		private static void Main(string[] args)
		{
			var enable = true;
			var view = new ConsoleViewer();
			var input = new ConsoleInput(view);

			var console = new Console(input, view);
			console.Command.Register("quit", () => enable = false);
			console.Command.Register("CoreFPS", Program._CoreFPS);

			while(enable)
			{
				input.Update();
			}
		}
        static void Main(string[] args)
        {
            var view = new Regulus.Utility.ConsoleViewer();
            var input = new Regulus.Utility.ConsoleInput(view);

            var console = new Regulus.Utility.Console(input, view);

            bool run = true;
            var wheel = new VGame.CLR.Wheel();
            console.Command.Register("Quit" , () => { run = false; });
            console.Command.Register("Spin", () => { _Spin(view , wheel); });

            console.Command.Register("Export", () => { _Export(view, wheel); });
            console.Command.Register<string>("Import[path]", (path) => { _Import(view, wheel , path); });

            while (run)
            {

                input.Update();
            }
        }
 public StageStart(Command command, Console.IViewer view ,string[] first_command)
 {
     _View = view;
     _FirstCommand = first_command;
     _Command = command;
 }
Example #9
0
 private RemotingClient(Console.IInput input, Console.IViewer view)
     : base(view, input)
 {
     ModeSelectorEvent += RemotingClient_ModeSelectorEvent;
 }