Esempio n. 1
0
        //"Name<uid><wonid><>" connected, address "ip:port"  [50]
        protected virtual void OnConnection(DateTime Timestamp, string[] info)
        {
            string[]         s         = info[2].Split(':');
            ConnectEventArgs eventArgs = new ConnectEventArgs()
            {
                Timestamp = Timestamp,
                Player    = GetPlayerInfo(info[0]),
                Ip        = s[0],
                Port      = ushort.Parse(s[1])
            };

            PlayerConnected.Fire(ServerEndPoint, eventArgs);
        }
Esempio n. 2
0
 //"Name<uid><wonid><>" connected, address "ip:port"  [50]
 protected virtual void OnConnection(DateTime Timestamp, string[] info)
 {
     string[] s = info[2].Split(':');
     ConnectEventArgs eventArgs = new ConnectEventArgs()
     {
         Timestamp = Timestamp,
         Player = GetPlayerInfo(info[0]),
         Ip = s[0],
         Port = ushort.Parse(s[1])
     };
     PlayerConnected.Fire(ServerEndPoint, eventArgs);
 }