Exemple #1
0
        static void Main(string[] args)
        {
            var view = new Regulus.Utility.ConsoleViewer();
            var input = new Input(view);

            var application = new Regulus.Project.Crystal.Application(view, input);

            Regulus.Game.IFramework app = application;
            app.Launch();
            application.SetLogMessage(Regulus.Utility.Console.LogFilter.None);
            var batchCommander = new BatchCommander(application.Command , view);
            while (app.Update())
            {
                input.Update();
                batchCommander.Update();
            }

            app.Shutdown();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var view = new Regulus.Utility.ConsoleViewer();
            var input = new Input(view);

            var application = new Regulus.Project.ExiledPrincesses.Application(view, input);
            //application.SelectSystemEvent += _OnSelectSystem;
            //application.UserRequesterEvent += _OnUserRequester;

            Regulus.Utility.IUpdatable app = application;
            app.Launch();
            application.SetLogMessage(Regulus.Utility.Console.LogFilter.All);
            var batchCommander = new BatchCommander(application.Command , view);
            while (app.Update())
            {
                input.Update();
                batchCommander.Update();
            }

            app.Shutdown();
        }