Esempio 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();
        }
 public WorldController(World world)
 {
     this.world = world;
 }