Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            var view  = new ConsoleViewer();
            var input = new ConsoleInput(view);

            var core = _LoadGame("Game.dll");

            var client = new Client <IUser>(view, input);

            client.ModeSelectorEvent += new ModeCreator(core, client.Command).Select;



            var updater = new Updater();

            updater.Add(client);
            updater.Add(core);

            while (client.Enable)
            {
                input.Update();
                updater.Working();
            }

            updater.Shutdown();
        }
Ejemplo n.º 2
0
 private void FoobarControl_OnLoaded(object sender, RoutedEventArgs e)
 {
     Context.PropertyChanged += (o, args) =>
     {
         if (args.PropertyName == nameof(FoobarViewModelBase.ConsoleText))
         {
             ConsoleViewer.ScrollToEnd();
         }
     };
 }
Ejemplo n.º 3
0
        public static void Main(string[] args)
        {
            var viewer = new ConsoleViewer();

            viewer.Display(Ui.Current.GetCurrentView());

            while (true)
            {
                MainScene.Current.Step();
                viewer.Display(Ui.Current.GetCurrentView());
            }
        }
Ejemplo n.º 4
0
 public void Setup()
 {
     _writeActionMock = new Mock <Action <string> >();
     _consoleViewer   = new ConsoleViewer(_writeActionMock.Object);
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     instance       = this;
     outputMessages = new List <string>();
 }
Ejemplo n.º 6
0
 public void SetUp()
 {
     _uut       = new ConsoleViewer();
     _trackInfo = new List <TrackInfo>();
 }