Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.Title = "Grindfest Server";

            GameServer server = new GameServer();
            server.Run();
        }
Exemplo n.º 2
0
        private static void Main(string[] args)
        {
            Console.Title = "OpenORPG Server";
            //Console.WindowWidth = 100;

            var server = new GameServer();
            server.Run();
        }
Exemplo n.º 3
0
 public Lobby(GameServer server)
 {
     PlayableSlots = 2;
     MaxSlots = 8;
     idToGive = 0;
     myServer = server;
     clients = new List<NetConnection>();
     Name = "Diamond Tiaras Death Room";
     Description = "Testing Server Descriptions";
 }
Exemplo n.º 4
0
        private static void Main(string[] args)
        {
            Settings.Init("Resources/Data/Buildings.xml", "Resources/Data/Units.xml");

            var server = new GameServer(5555);
            //server.SetGame(new StandardMelee(server, 1));
            server.Start();

            var stopwatch = new Stopwatch();
            stopwatch.Restart();

            while (true)
            {
                var dt = (float) (stopwatch.Elapsed.TotalSeconds*1000);
                stopwatch.Restart();
                server.Update(dt);
                Thread.Sleep(100);
            }
        }