コード例 #1
0
 protected override void Compile()
 {
     InternalOutgoingMessage.Initialize(2);
     foreach (string fuseRight in FuseRights)
     {
         InternalOutgoingMessage.AppendString(fuseRight);
     }
 }
コード例 #2
0
ファイル: MFuseRights.cs プロジェクト: habb0/Bluedot
        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);
        }
コード例 #3
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);
        }