예제 #1
0
        public Server(string ipAddress, int port)
        {
            _ipAddress = ipAddress;
            _port      = port;

            _queryClient = new ServerQueryClient(this, ipAddress, port);
            Settings     = new SortedDictionary <string, string>();
            Players      = new ObservableCollection <Player>();
            Info         = new ServerInfo(null, null);
        }
예제 #2
0
        public Server(string hostname, ushort port, string password, string mod, ushort queryPort)
        {
            _queryHost = hostname;
            _queryPort = queryPort;

            _joinIpAddress = null;
            _joinPort      = port;

            _password = password;
            _mod      = mod;

            _queryClient = new ServerQueryClient(this, _queryHost, _queryPort);
            Settings     = new SortedDictionary <string, string>();
            Players      = new ObservableCollection <Player>();
            Info         = new ServerInfo(null, null);
        }