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); }
void client_FriendUpdated(object sender, FriendUpdatedEventArgs e) { }
void Client_FriendUpdated(object sender, FriendUpdatedEventArgs e) { if (__friendUpdated != null) __friendUpdated.Call(_host.ClientHost, ConvObj(e)); }