Пример #1
0
 public Server(string s, ClientComm c)
 {
     Players = new List <OnlinePlayer>();
     string[] tmp = s.Split(' ');
     UserName       = tmp[0];
     Code           = tmp[1];
     Connection     = c;
     ServerComm     = null;
     ConnectionMode = 0;
 }
Пример #2
0
        public Server(string s, int port)
        {
            Players = new List <OnlinePlayer>();
            string[] tmp = s.Split(' ');
            UserName = tmp[0];
            Code     = tmp[1];

            ServerComm     = new ServerComm(this, port);
            Connection     = null;
            ConnectionMode = 1;
        }