filters.recipients module

Provides Recipient Filtering functionality.

class filters.recipients.BaseRecipientFilter

Bases: instance

__init__()

Raises an exception This class cannot be instantiated from Python

get_recipient_index((BaseRecipientFilter)arg1, (_engines._sound.Channel)slot) int :

Obtains the player index at the slot in the filter

is_init_message((BaseRecipientFilter)arg1) bool :

Whether the message has been initialised?

is_reliable((BaseRecipientFilter)arg1) bool :

Whether this recipient filter will be network reliable (sent in-order)

class filters.recipients.RecipientFilter(*filters)[source]

Bases: _RecipientFilter

Class used to improve the ease of use of a _RecipientFilter instance.

__init__(*filters)[source]

Initialize and update the recipient filter.

merge(iterable)[source]

Merge the given recipient.

update(*args, clear=True)[source]

Update the recipient filter matching the given filters.