diff options
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 |