diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/iserverunknown.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/iserverunknown.h')
| -rw-r--r-- | public/iserverunknown.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/public/iserverunknown.h b/public/iserverunknown.h new file mode 100644 index 0000000..97f3c99 --- /dev/null +++ b/public/iserverunknown.h @@ -0,0 +1,35 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef ISERVERUNKNOWN_H +#define ISERVERUNKNOWN_H + +#ifdef _WIN32 +#pragma once +#endif + + +#include "ihandleentity.h" + +class ICollideable; +class IServerNetworkable; +class CBaseEntity; + + +// This is the server's version of IUnknown. We may want to use a QueryInterface-like +// mechanism if this gets big. +class IServerUnknown : public IHandleEntity +{ +public: + // Gets the interface to the collideable + networkable representation of the entity + virtual ICollideable* GetCollideable() = 0; + virtual IServerNetworkable* GetNetworkable() = 0; + virtual CBaseEntity* GetBaseEntity() = 0; +}; + + +#endif // ISERVERUNKNOWN_H |