Example #1
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(257)
     .AppendInt32(A)
     .AppendInt32(B)
     .AppendInt32(C)
     .AppendInt32(D)
     .AppendInt32(E)
     .AppendInt32(F)
     .AppendInt32(G)
     .AppendInt32(H)
     .AppendInt32(I)
     .AppendInt32(J)
     .AppendInt32(K)
     .AppendInt32(L)
     .AppendString(DateFormat)
     .AppendString(M)
     .AppendInt32(N)
     .AppendBoolean(O)
     .AppendInt32(P)
     .AppendString(URL)
     .AppendString(Q)
     .AppendInt32(R)
     .AppendBoolean(S);
 }
Example #2
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(257)
                .AppendInt32(A)
                .AppendInt32(B)
                .AppendInt32(C)
                .AppendInt32(D)
                .AppendInt32(E)
                .AppendInt32(F)
                .AppendInt32(G)
                .AppendInt32(H)
                .AppendInt32(I)
                .AppendInt32(J)
                .AppendInt32(K)
                .AppendInt32(L)
                .AppendString(DateFormat)
                .AppendString(M)
                .AppendInt32(N)
                .AppendBoolean(O)
                .AppendInt32(P)
                .AppendString(URL)
                .AppendString(Q)
                .AppendInt32(R)
                .AppendBoolean(S);
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #3
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(2);
     foreach (string fuseRight in FuseRights)
     {
         InternalOutgoingMessage.AppendString(fuseRight);
     }
 }
 public override OutgoingMessage Send(IMessageable target)
 {
     if (InternalOutgoingMessage.ID == 0)
     {
         InternalOutgoingMessage.Initialize(3);
     }
     target.SendMessage(InternalOutgoingMessage);
     return(this);
 }
Example #5
0
 public override OutgoingMessage Send(IMessageable target)
 {
     if (InternalOutgoingMessage.ID == 0)
     {
         InternalOutgoingMessage.Initialize(277)
         .AppendBoolean(UnknownA);
     }
     target.SendMessage(InternalOutgoingMessage);
     return(this);
 }
Example #6
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(6)
                .AppendString(Balance.ToString(CultureInfo.InvariantCulture));
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #7
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(287)
                .AppendInt32((int)Reason);
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #8
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(308).
                AppendInt32(Volume);
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #9
0
 public override OutgoingMessage Send(IMessageable target)
 {
     if (InternalOutgoingMessage.ID == 0)
     {
         InternalOutgoingMessage.Initialize(132)
         .AppendInt32(ID)
         .AppendString(Username)
         .AppendString(ID.ToString());
     }
     target.SendMessage(InternalOutgoingMessage);
     return(this);
 }
Example #10
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(5)
     .AppendString(HabboId.ToString(CultureInfo.InvariantCulture))
     .AppendString(Username)     // TODO: Should this be display name?
     .AppendString(Figure.ToString())
     .AppendString(Figure.GenderChar.ToString(CultureInfo.InvariantCulture))
     .AppendString(Motto)
     .AppendString(UnknownA)
     .AppendInt32(12)     // TODO: Find out what this does.
     .AppendString(Figure.FormattedSwimFigure)
     .AppendBoolean(false)
     .AppendBoolean(true);
 }
Example #11
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(5)
     .AppendString(ConnectionId.ToString(CultureInfo.InvariantCulture))
     .AppendString(Username)
     .AppendString(Figure.ToString())
     .AppendString(Figure.GenderChar.ToString(CultureInfo.InvariantCulture))
     .AppendString(Motto)
     .AppendString(UnknownA)
     .AppendInt32(UnknownB)
     .AppendString(Figure.FormattedSwimFigure)
     .AppendInt32(UnknownC)
     .AppendInt32(UnknownD);
 }
Example #12
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(7)
                .AppendString(SubscriptionName)
                .AppendInt32(CurrentDay)
                .AppendInt32(ElapsedMonths)
                .AppendInt32(PrepaidMonths)
                .AppendBoolean(IsActive);
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #13
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(2);

                InternalOutgoingMessage.AppendInt32(FuseRights.Count);
                foreach (string fuseRight in FuseRights)
                {
                    InternalOutgoingMessage.AppendString(fuseRight);
                }
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #14
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(12)
                .AppendInt32(UnknownA)
                .AppendInt32(UnknownB)
                .AppendInt32(UnknownC)
                .AppendInt32(Categories.Count());     // -1 because the default category doesn't count

                int friendCount = 0;

                foreach (MessengerCategory category in Categories)
                {
                    InternalOutgoingMessage
                    .AppendInt32(category.Id)
                    .AppendString(category.Name);
                    friendCount += category.Friends.Count();
                }

                InternalOutgoingMessage.AppendInt32(friendCount);

                foreach (MessengerCategory category in Categories)
                {
                    foreach (IBefriendable befriendable in category.Friends)
                    {
                        InternalOutgoingMessage
                        .AppendInt32(befriendable.Id)
                        .AppendString(befriendable.DisplayName)
                        .AppendBoolean(true)     // TODO: Find out what this does.
                        .AppendBoolean(befriendable.LoggedIn)
                        .AppendBoolean(befriendable.Stalkable)
                        .AppendString(befriendable.Figure.ToString())
                        .AppendInt32(category.Id)
                        .AppendString(befriendable.Motto)
                        .AppendString(befriendable.LastAccess.ToString(CultureInfo.InvariantCulture));
                    }
                }

                InternalOutgoingMessage
                .AppendInt32(MaximumFriends)
                .AppendBoolean(false);     // TODO: Find out what this does.
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #15
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(5)
                .AppendString(HabboId.ToString(CultureInfo.InvariantCulture))
                .AppendString(Username)     // TODO: Should this be display name?
                .AppendString(Figure.ToString())
                .AppendString(Figure.GenderChar.ToString(CultureInfo.InvariantCulture))
                .AppendString(Motto)
                .AppendString(UnknownA)
                .AppendInt32(12)     // TODO: Find out what this does.
                .AppendString(Figure.FormattedSwimFigure)
                .AppendBoolean(false)
                .AppendBoolean(true);
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #16
0
        public override OutgoingMessage Send(IMessageable target)
        {
            if (InternalOutgoingMessage.Id == 0)
            {
                InternalOutgoingMessage.Initialize(229)
                .AppendInt32(AllBadges.Count);
                foreach (string badge in AllBadges)
                {
                    InternalOutgoingMessage
                    .AppendString(badge);
                }
                foreach (KeyValuePair <BadgeSlot, string> slotBadge in BadgeSlots)
                {
                    InternalOutgoingMessage
                    .AppendInt32((int)slotBadge.Key)
                    .AppendString(slotBadge.Value);
                }
            }

            target.SendMessage(InternalOutgoingMessage);
            return(this);
        }
Example #17
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(287)
     .AppendInt32((int)Reason);
 }
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(0);
 }
Example #19
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(163)
     .AppendString(Date.ToShortDateString());
 }
Example #20
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(6)
     .AppendString(Balance.ToString(CultureInfo.InvariantCulture));
 }
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(277)
     .AppendBoolean(UnknownA);
 }
Example #22
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(308)
     .AppendInt32(Volume);
 }
Example #23
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(1)
     .AppendString(Key);
 }