Пример #1
0
        //"Name<uid><wonid><team>" tell "Name<uid><wonid><team>" message "message"   [66]
        protected virtual void OnPrivateChat(DateTime Timestamp, string[] info)
        {
            PrivateChatEventArgs eventArgs = new PrivateChatEventArgs()
            {
                Timestamp = Timestamp,
                Sender    = GetPlayerInfo(info[0]),
                Receiver  = GetPlayerInfo(info[2]),
                Message   = info.Length == 5 ? info[4] : string.Empty
            };

            PrivateChat.Fire(ServerEndPoint, eventArgs);
        }
Пример #2
0
 //"Name<uid><wonid><team>" tell "Name<uid><wonid><team>" message "message"   [66]
 protected virtual void OnPrivateChat(DateTime Timestamp, string[] info)
 {
     PrivateChatEventArgs eventArgs = new PrivateChatEventArgs()
     {
         Timestamp = Timestamp,
         Sender = GetPlayerInfo(info[0]),
         Receiver = GetPlayerInfo(info[2]),
         Message = info.Length == 5 ? info[4] : string.Empty
     };
     PrivateChat.Fire(ServerEndPoint, eventArgs);
 }