示例#1
0
 internal void Serialize(ServerMessage reply, Habbo Habbo)
 {
     reply.AppendUInt(UserId);                                 // avatar = int32 > 0, senão <= 0 (chat grupo)
     reply.AppendString(mUsername);                            // do grupo ou avatar
     reply.AppendInt32(1);                                     // ??
     reply.AppendBoolean(IsOnline);                            // showLook
     reply.AppendBoolean(Habbo.FollowEnable ? InRoom : false); // canFollow
     reply.AppendString(Look);                                 // se for grupo, badgecode, senão, o avatara do usuario
     reply.AppendInt32(0);                                     // categoryid
     reply.AppendString(Motto);
     reply.AppendString(string.Empty);                         // avatar real name, idk
     reply.AppendString(string.Empty);                         // sem uso
     reply.AppendBoolean(true);                                // offline messaging enabled //Neri
     reply.AppendBoolean(false);                               // idk
     reply.AppendBoolean(false);                               // Has Pocket Habbo That failed app that you can out-game talk with your friend in-game
     if (Habbo.GetRelationshipComposer().LoveRelation.ContainsKey(UserId))
     {
         reply.AppendShort(1);
     }
     else if (Habbo.GetRelationshipComposer().FriendRelation.ContainsKey(UserId))
     {
         reply.AppendShort(2);
     }
     else if (Habbo.GetRelationshipComposer().DieRelation.ContainsKey(UserId))
     {
         reply.AppendShort(3);
     }
     else
     {
         reply.AppendShort(0);
     }
 }