public void Update(HFriendData friend) { IsOnline = friend.IsOnline; Figure = friend.Figure; Motto = friend.Motto; RelationshipStatus = friend.RelationshipStatus; }
public static HFriendData[] Parse(HPacket packet) { int removedFriends = packet.ReadInt32(); int addedFriends = packet.ReadInt32(); var friends = new HFriendData[packet.ReadInt32()]; for (int i = 0; i < friends.Length; i++) { friends[i] = new HFriendData(packet); } return(friends); }