public WorldStateServer(NetServer serveur)
 {
     _Players = new List <Player>();
     _serveur = serveur;
     if (Instance == null)
     {
         Instance = this;
     }
 }
Beispiel #2
0
        public JungleTribesServer()
        {
            // new Thread(new ThreadStart(ListenLoop)).Start();
            _gameTimer = new Stopwatch();
            var config = new NetPeerConfiguration("Jungletribes")
            {
                Port = 7777
            };
            var server = new NetServer(config);

            server.Start();
            WSS = new WorldStateServer(server);
            var update = new FrameController(10, 30, false, Update);

            while (Running)
            {
                update.TryFrame();
            }
            Console.ReadLine();
        }