You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
5 years ago
|
//========= 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
|