Recipient filters
Engine structures the SDK declares by hand: CRecipientFilter, CSingleRecipientFilter.
Header source2mod/schema/recipientfilter.h
Inherits IRecipientFilter
CRecipientFilter(NetChannelBufType_t nBufType = BUF_RELIABLE, bool bInitMessage = false);
NetChannelBufType_t GetNetworkBufType(void) const override;
bool IsInitMessage(void) const override;
const CPlayerBitVec& GetRecipients(void) const override;
CPlayerSlot GetPredictedPlayerSlot(void) const override;
void CopyFrom(const CRecipientFilter& src);
void AddRecipient(CPlayerSlot slot);
| Parameter | Type |
|---|
slot | CPlayerSlot |
void RemoveRecipient(CPlayerSlot slot);
| Parameter | Type |
|---|
slot | CPlayerSlot |
void RemoveAllRecipients();
bool HasRecipient(CPlayerSlot slot) const;
| Parameter | Type |
|---|
slot | CPlayerSlot |
int GetRecipientCount() const;
void AddPlayersFromBitMask(const CPlayerBitVec& playerbits);
| Parameter | Type |
|---|
playerbits | const CPlayerBitVec& |
void RemovePlayersFromBitMask(const CPlayerBitVec& playerbits);
| Parameter | Type |
|---|
playerbits | const CPlayerBitVec& |
void SetFromBitmask(uint64_t mask);
| Parameter | Type |
|---|
mask | uint64_t |
void SetPredictedPlayer(CPlayerSlot slot);
| Parameter | Type |
|---|
slot | CPlayerSlot |
bool IsUsingPredictionRules() const;
bool IgnorePredictionCull() const;
void SetIgnorePredictionCull(bool ignore);
Inherits CRecipientFilter
CSingleRecipientFilter(CPlayerSlot nRecipientSlot, NetChannelBufType_t nBufType = BUF_RELIABLE, bool bInitMessage = false);