コード例 #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            Process p = Process.GetCurrentProcess();

            p.PriorityClass = ProcessPriorityClass.High;

            LoggerSetup.Initialize();

            Language.Instance.SetLanguage("Swedish");

            Recellection game      = new Recellection();
            Initializer  logic     = new Initializer(game.Window.Handle);
            Thread       gameLogic = new Thread(logic.Run);

            game.LogicThread        = gameLogic;
            Recellection.textureMap = new SpriteTextureMap(game.Content);

            FullScreen(game.Window.Handle);


            game.Run();
            gameLogic.Abort();
            Environment.Exit(0);
            // MOAR EXITS! MOAR!!! DEATH TO ALL APPLICATION!
        }
コード例 #2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            Process p = Process.GetCurrentProcess();
            p.PriorityClass = ProcessPriorityClass.High;

            LoggerSetup.Initialize();

            Language.Instance.SetLanguage("Swedish");

            Recellection game = new Recellection();
            Initializer logic = new Initializer(game.Window.Handle);
            Thread gameLogic = new Thread(logic.Run);

            game.LogicThread = gameLogic;
            Recellection.textureMap = new SpriteTextureMap(game.Content);

            FullScreen(game.Window.Handle);

            game.Run();
            gameLogic.Abort();
            Environment.Exit(0);
            // MOAR EXITS! MOAR!!! DEATH TO ALL APPLICATION!
        }