예제 #1
0
        static void Main(string[] args)
        {
            UmbraGameServer server = new UmbraGameServer();

            server.Initialize();
            server.Start();

            while(!Console.KeyAvailable || Console.ReadKey().Key != ConsoleKey.Escape) {
                server.Update();

                // sleep to allow other processes to run smoothly (not sure if this is necessary)
                Thread.Sleep(1);
            }

            server.Shutdown();
        }
예제 #2
0
        static void Main(string[] args)
        {
            UmbraGameServer server = new UmbraGameServer();

            server.Initialize();
            server.Start();

            while (!Console.KeyAvailable || Console.ReadKey().Key != ConsoleKey.Escape)
            {
                server.Update();

                // sleep to allow other processes to run smoothly (not sure if this is necessary)
                Thread.Sleep(1);
            }

            server.Shutdown();
        }