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/toolframework/itooldictionary.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/toolframework/itooldictionary.h')
| -rw-r--r-- | public/toolframework/itooldictionary.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/public/toolframework/itooldictionary.h b/public/toolframework/itooldictionary.h new file mode 100644 index 0000000..96465f1 --- /dev/null +++ b/public/toolframework/itooldictionary.h @@ -0,0 +1,39 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef ITOOLDICTIONARY_H +#define ITOOLDICTIONARY_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "appframework/IAppSystem.h" + +//----------------------------------------------------------------------------- +// Forward declaration +//----------------------------------------------------------------------------- +class IToolSystem; + + +//----------------------------------------------------------------------------- +// Purpose: Every tool dll sitting in bin\tools must expose this interface +// The engine will load the .dll, get this interface, and then ask for all +// tools in the .dll +// The engine will call CreateTools just before querying for the tools, so you +// can instance any dynamically instanced tools during that call +//----------------------------------------------------------------------------- +class IToolDictionary : public IAppSystem +{ +public: + virtual void CreateTools() = 0; + virtual int GetToolCount() const = 0; + virtual IToolSystem *GetTool( int index ) = 0; +}; + +#define VTOOLDICTIONARY_INTERFACE_VERSION "VTOOLDICTIONARY002" + +#endif // ITOOLDICTIONARY_H |