예제 #1
0
        private void HandleFriendUpdate(ParseData pd)
        {
            DataReader dr    = new DataReader(pd.Data);
            byte       entry = dr.ReadByte();

            if (m_friendsList.Count <= entry)
            {
                return;
            }
            FriendUser friend = m_friendsList[entry];

            friend.Status       = (FriendStatus)dr.ReadByte();
            friend.LocationType = (FriendLocation)dr.ReadByte();
            string prodID = dr.ReadDwordString(0);

            friend.Location = dr.ReadCString();

            if (friend.LocationType != FriendLocation.Offline)
            {
                friend.Product = Product.GetByProductCode(prodID);
            }
            else
            {
                friend.Product = null;
            }

            FriendUpdatedEventArgs args = new FriendUpdatedEventArgs(friend)
            {
                EventData = pd
            };

            OnFriendUpdated(args);
        }
예제 #2
0
 void Client_FriendUpdated(object sender, FriendUpdatedEventArgs e)
 {
     if (__friendUpdated != null)
     {
         __friendUpdated.Call(_host.ClientHost, ConvObj(e));
     }
 }
예제 #3
0
 void client_FriendUpdated(object sender, FriendUpdatedEventArgs e)
 {
 }