internal static ServerMessage SerializeUpdate(MessengerBuddy friend, Habbo Habbo) { friend.UpdateUserSettings(); var reply = new ServerMessage(Outgoing.FriendUpdate); reply.AppendInt32(0); // category reply.AppendInt32(friend.IsOnline ? 2 : 1); // number of updates if (friend.IsOnline) { reply.AppendInt32(1); friend.Serialize(reply, Habbo); } reply.AppendInt32(0); // don't know friend.Serialize(reply, Habbo); reply.AppendBoolean(false); return(reply); }
public ServerPacket SerializeUpdate(MessengerBuddy friend) { ServerPacket reply = new ServerPacket(ServerPacketHeader.FriendListUpdateMessageComposer); reply.WriteInteger(0); reply.WriteInteger(1); reply.WriteInteger(0); friend.Serialize(reply); reply.WriteBoolean(false); return(reply); }
internal static ServerMessage SerializeUpdate(MessengerBuddy friend) { ServerMessage reply = new ServerMessage(13); reply.AppendInt32(0); reply.AppendInt32(1); reply.AppendInt32(0); friend.Serialize(reply); reply.AppendBoolean(false); return reply; }
internal static ServerMessage SerializeUpdate(MessengerBuddy friend) { ServerMessage reply = new ServerMessage(13); reply.AppendInt32(0); reply.AppendInt32(1); reply.AppendInt32(0); friend.Serialize(reply); reply.AppendBoolean(false); return(reply); }
internal override void SerializeAndSendUpdate(MessengerBuddy friend) { if (GetClient() == null) return; ServerMessage reply = PacketHandelingManager.GetRecycledItem(OutputCode.FriendListUpdateEvent); reply.AddInt32(0); reply.AddInt32(1); reply.AddInt32(0); friend.Serialize(reply); reply.AddBoolean(false); GetClient().SendMessage(reply); }