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(2); InternalOutgoingMessage.AppendInt32(FuseRights.Count); foreach (string fuseRight in FuseRights) { InternalOutgoingMessage.AppendString(fuseRight); } } target.SendMessage(InternalOutgoingMessage); return(this); }
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); }