mirror of
https://github.com/arthurdead/proxysend.git
synced 2025-12-07 10:28:21 +00:00
26 lines
718 B
C++
26 lines
718 B
C++
#pragma once
|
|
|
|
#include <IShareSys.h>
|
|
|
|
#define SMINTERFACE_PROXYSEND_NAME "proxysend"
|
|
#define SMINTERFACE_PROXYSEND_VERSION 2
|
|
|
|
class proxysend : public SourceMod::SMInterface
|
|
{
|
|
public:
|
|
virtual const char *GetInterfaceName() override final
|
|
{ return SMINTERFACE_PROXYSEND_NAME; }
|
|
virtual unsigned int GetInterfaceVersion() override final
|
|
{ return SMINTERFACE_PROXYSEND_VERSION; }
|
|
|
|
class parallel_pack_listener
|
|
{
|
|
public:
|
|
virtual bool is_allowed() const noexcept { return true; }
|
|
virtual void pre_pack_entity(CBaseEntity *pEntity) const noexcept {}
|
|
};
|
|
|
|
virtual bool add_listener(const parallel_pack_listener *ptr) noexcept = 0;
|
|
virtual bool remove_listener(const parallel_pack_listener *ptr) noexcept = 0;
|
|
};
|