Beispiel #1
0
        static void Main(string[] args)
        {
            //Initializes the server on port 35565. MaxPlayers=4
            NetworkManager.Init(35565, 4);


            //Initialize Content
            CommandTable.Init();
            PacketTable.Init();
            PacketManager.Lock(); //Locks the PacketManager.

            //Start Game Logic
            GameStarter.Start(Game.Start, Game.Stop, Game.Update);

            //Start listening for clients
            NetworkManager.StartListener();

            _isRunning = true;
            StartCommandLoop();
        }