RecipientFilter
Bitmask of player slots that should receive a net message. Each bit position corresponds to a player slot index.
public struct RecipientFilter
Namespace: DeadworksManaged.Api
Source: NetMessages/RecipientFilter.cs#L4
Properties
RecipientFilter.All
A filter that targets all 64 possible player slots.
Signature
public static RecipientFilter All { get; }
Source: NetMessages/RecipientFilter.cs#L10
Fields
RecipientFilter.Mask
Raw bitmask where bit i indicates slot i is included.
Signature
public ulong Mask;
Source: NetMessages/RecipientFilter.cs#L7
Methods
RecipientFilter.Single()
A filter targeting exactly one player slot.
Signature
public static RecipientFilter Single(int slot)
Parameters
slot: The player slot index (0-based).
Source: NetMessages/RecipientFilter.cs#L14
RecipientFilter.Add()
Adds a player slot to the filter.
Signature
public void Add(int slot)
Parameters
slot: The player slot index to add.
Source: NetMessages/RecipientFilter.cs#L18
RecipientFilter.Remove()
Removes a player slot from the filter.
Signature
public void Remove(int slot)
Parameters
slot: The player slot index to remove.
Source: NetMessages/RecipientFilter.cs#L22
RecipientFilter.HasRecipient()
Returns true if the given slot is included in this filter.
Signature
public readonly bool HasRecipient(int slot)
Parameters
slot: The player slot index to test.