aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/IHammer.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/public/IHammer.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/public/IHammer.h')
-rw-r--r--mp/src/public/IHammer.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/mp/src/public/IHammer.h b/mp/src/public/IHammer.h
new file mode 100644
index 00000000..ee3a94af
--- /dev/null
+++ b/mp/src/public/IHammer.h
@@ -0,0 +1,56 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: The application object.
+//
+//=============================================================================//
+
+#ifndef IHAMMER_H
+#define IHAMMER_H
+
+#include "appframework/IAppSystem.h"
+
+typedef struct tagMSG MSG;
+
+
+class IStudioDataCache;
+
+
+//-----------------------------------------------------------------------------
+// Return values for RequestNewConfig
+//-----------------------------------------------------------------------------
+enum RequestRetval_t
+{
+ REQUEST_OK = 0,
+ REQUEST_QUIT
+};
+
+
+//-----------------------------------------------------------------------------
+// Interface used to drive hammer
+//-----------------------------------------------------------------------------
+#define INTERFACEVERSION_HAMMER "Hammer001"
+class IHammer : public IAppSystem
+{
+public:
+ virtual bool HammerPreTranslateMessage( MSG * pMsg ) = 0;
+ virtual bool HammerIsIdleMessage( MSG * pMsg ) = 0;
+ virtual bool HammerOnIdle( long count ) = 0;
+
+ virtual void RunFrame() = 0;
+
+ // Returns the mod and the game to initially start up
+ virtual const char *GetDefaultMod() = 0;
+ virtual const char *GetDefaultGame() = 0;
+
+ virtual bool InitSessionGameConfig( const char *szGameDir ) = 0;
+
+ // Request a new config from hammer's config system
+ virtual RequestRetval_t RequestNewConfig() = 0;
+
+ // Returns the full path to the mod and the game to initially start up
+ virtual const char *GetDefaultModFullPath() = 0;
+
+ virtual int MainLoop() = 0;
+};
+
+#endif // IHAMMER_H