Exemple #1
0
        public static void Run()
        {
            ApplicationControl.DoLaunch();
            using (var game = new Xenko.Engine.Game())
            {
                game.Run();
            }

            ApplicationControl.DoShutdown();
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            ApplicationControl.DoLaunch();
            Modules.Load("Main");
            var cli    = new ServerCommandLine();
            var server = Services.Get <Server>("Game.Server");

            server.Enable(31111);
            EventBus.Broadcast(null, new GameLoadEvent());
            server.Run();
            cli.Start();
            EventBus.Broadcast(null, new GameUnloadEvent());
            ApplicationControl.DoShutdown();
        }