aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/toolframework/itooldictionary.h
blob: 96465f1618c4d9b1d98e23448ad1697657cf30f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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