示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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;
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }