1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-08 10:13:28 +08:00
hl2sdk/public/irecipientfilter.h
hzqst 628a9be543
Add iloopmode.h (#163)
Also minor update to IRecipientFilter
2023-10-13 19:19:02 +03:00

32 lines
876 B
C++

//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef IRECIPIENTFILTER_H
#define IRECIPIENTFILTER_H
#ifdef _WIN32
#pragma once
#endif
#include "eiface.h"
//-----------------------------------------------------------------------------
// Purpose: Generic interface for routing messages to users
//-----------------------------------------------------------------------------
class IRecipientFilter
{
public:
virtual ~IRecipientFilter() {}
virtual bool IsReliable( void ) const = 0;
virtual bool IsInitMessage( void ) const = 0;
virtual int GetRecipientCount( void ) const = 0;
virtual CPlayerSlot GetRecipientIndex( int slot ) const = 0;
};
#endif // IRECIPIENTFILTER_H