diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/public/toolframework/iserverenginetools.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/public/toolframework/iserverenginetools.h')
| -rw-r--r-- | mp/src/public/toolframework/iserverenginetools.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/mp/src/public/toolframework/iserverenginetools.h b/mp/src/public/toolframework/iserverenginetools.h new file mode 100644 index 00000000..170c6edc --- /dev/null +++ b/mp/src/public/toolframework/iserverenginetools.h @@ -0,0 +1,50 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef ISERVERENGINETOOLS_H
+#define ISERVERENGINETOOLS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "interface.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: exposed from engine to game .dll
+//-----------------------------------------------------------------------------
+class IServerEngineTools : public IBaseInterface
+{
+public:
+ // Level init, shutdown
+ virtual void LevelInitPreEntityAllTools() = 0;
+ // entities are created / spawned / precached here
+ virtual void LevelInitPostEntityAllTools() = 0;
+
+ virtual void LevelShutdownPreEntityAllTools() = 0;
+ // Entities are deleted / released here...
+ virtual void LevelShutdownPostEntityAllTools() = 0;
+ // end of level shutdown
+
+ // Called each frame before entities think
+ virtual void FrameUpdatePreEntityThinkAllTools() = 0;
+ // called after entities think
+ virtual void FrameUpdatePostEntityThinkAllTools() = 0;
+
+ virtual void PreClientUpdateAllTools() = 0;
+ // FIXME: PostClientUpdateAllTools()???
+
+ // The server uses this to call into the tools to get the actual
+ // entities to spawn on startup
+ virtual const char* GetEntityData( const char *pActualEntityData ) = 0;
+
+ virtual void PreSetupVisibilityAllTools() = 0;
+
+ virtual bool InToolMode() = 0;
+};
+
+#define VSERVERENGINETOOLS_INTERFACE_VERSION "VSERVERENGINETOOLS001"
+
+#endif // ISERVERENGINETOOLS_H
|