Skip to main content

RecipientFilter

Namespace: DeadworksManaged.Api

Bitmask of player slots that should receive a net message. Each bit position corresponds to a player slot index.

Properties

PropertyDescription
AllA filter that targets all 64 possible player slots.

Fields

PropertyDescription
MaskRaw bitmask where bit i indicates slot i is included.

Methods

MethodDescription
Single(int slot)A filter targeting exactly one player slot.
Add(int slot)Adds a player slot to the filter.
Remove(int slot)Removes a player slot from the filter.
HasRecipient(int slot)Returns true if the given slot is included in this filter.

OutgoingMessageContext

Namespace: DeadworksManaged.Api

Carries a server→client net message along with its destination recipients. Passed to handlers registered via HookResult}).

Properties

PropertyDescription
MessageThe protobuf message being sent.
RecipientsThe set of players this message will be delivered to. Modifiable by the hook handler.
MessageIdThe numeric network message ID for T.

IncomingMessageContext

Namespace: DeadworksManaged.Api

Carries a client→server net message along with its sender. Passed to handlers registered via HookResult}).

Properties

PropertyDescription
MessageThe protobuf message received from the client.
SenderSlotThe player slot index of the client that sent this message.
MessageIdThe numeric network message ID for T.