2023-10-14 00:19:02 +08:00
|
|
|
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
|
2010-07-22 01:46:14 -05:00
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
// $NoKeywords: $
|
|
|
|
//=============================================================================//
|
|
|
|
|
|
|
|
#ifndef IRECIPIENTFILTER_H
|
|
|
|
#define IRECIPIENTFILTER_H
|
|
|
|
#ifdef _WIN32
|
|
|
|
#pragma once
|
|
|
|
#endif
|
|
|
|
|
2013-07-12 02:25:04 -04:00
|
|
|
#include "eiface.h"
|
2024-03-23 21:24:10 +03:00
|
|
|
#include "inetchannel.h"
|
2013-07-12 02:25:04 -04:00
|
|
|
|
2010-07-22 01:46:14 -05:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Purpose: Generic interface for routing messages to users
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
class IRecipientFilter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~IRecipientFilter() {}
|
|
|
|
|
2024-03-23 21:24:10 +03:00
|
|
|
virtual NetChannelBufType_t GetNetworkBufType( void ) const = 0;
|
2010-07-22 01:46:14 -05:00
|
|
|
virtual bool IsInitMessage( void ) const = 0;
|
|
|
|
|
2024-03-23 21:24:10 +03:00
|
|
|
virtual int GetRecipientCount( void ) const = 0;
|
2023-10-14 00:19:02 +08:00
|
|
|
virtual CPlayerSlot GetRecipientIndex( int slot ) const = 0;
|
2010-07-22 01:46:14 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // IRECIPIENTFILTER_H
|