コード例 #1
0
ファイル: Program.cs プロジェクト: jiowchern/KeysCore
        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();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: jiowchern/Regulus
        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();
        }