Counter Strike : Global Offensive Source Code
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.

39 lines
1.2 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef ITOOLDICTIONARY_H
  7. #define ITOOLDICTIONARY_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "appframework/iappsystem.h"
  12. //-----------------------------------------------------------------------------
  13. // Forward declaration
  14. //-----------------------------------------------------------------------------
  15. class IToolSystem;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: Every tool dll sitting in bin\tools must expose this interface
  18. // The engine will load the .dll, get this interface, and then ask for all
  19. // tools in the .dll
  20. // The engine will call CreateTools just before querying for the tools, so you
  21. // can instance any dynamically instanced tools during that call
  22. //-----------------------------------------------------------------------------
  23. class IToolDictionary : public IAppSystem
  24. {
  25. public:
  26. virtual void CreateTools() = 0;
  27. virtual int GetToolCount() const = 0;
  28. virtual IToolSystem *GetTool( int index ) = 0;
  29. };
  30. #define VTOOLDICTIONARY_INTERFACE_VERSION "VTOOLDICTIONARY003"
  31. #endif // ITOOLDICTIONARY_H