aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/iserverunknown.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/public/iserverunknown.h')
-rw-r--r--mp/src/public/iserverunknown.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/mp/src/public/iserverunknown.h b/mp/src/public/iserverunknown.h
new file mode 100644
index 00000000..e7a0039d
--- /dev/null
+++ b/mp/src/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