private void Handle_FriendStatus(WoWReader wr) { FriendsListItem friendStatus = new FriendsListItem(); friendStatus.guid = new WoWGuid(wr.ReadUInt64()); friendStatus.online = wr.ReadBoolean(); BoogieCore.Player.friendStatusUpdate(friendStatus); }
private void Handle_FriendsList(WoWReader wr) { byte count = wr.ReadByte(); FriendsListItem[] friendsList = new FriendsListItem[count]; for (int i = 0; i < count; i++) { friendsList[i] = new FriendsListItem(); friendsList[i].guid = new WoWGuid(wr.ReadUInt64()); friendsList[i].online = wr.ReadBoolean(); QueryName(friendsList[i].guid); } BoogieCore.Player.setFriendList(friendsList); }