Ejemplo n.º 1
0
        public Server()
        {
            Random = new Random();
            Clients = new List<Client>();
            LoadConfig();
            encoder = new UTF8Encoding();
            tcpListener = new TcpListener(IPAddress.Any, port);
            listenThread = new Thread(new ThreadStart(ListenForClients));
            supportedVersion = new Version("0.1.0.0");
            LoadClient();
            World = new World();
            WorldController = new WorldController(World);
            WorldController.Generate();

            listenThread.Start();
        }
Ejemplo n.º 2
0
        public Server()
        {
            Random  = new Random();
            Clients = new List <Client>();
            LoadConfig();
            encoder          = new UTF8Encoding();
            tcpListener      = new TcpListener(IPAddress.Any, port);
            listenThread     = new Thread(new ThreadStart(ListenForClients));
            supportedVersion = new Version("0.1.0.0");
            LoadClient();
            World           = new World();
            WorldController = new WorldController(World);
            WorldController.Generate();

            listenThread.Start();
        }