Team Fortress 2 Source Code as on 22/4/2020
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.

33 lines
1004 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IVGUIMODULELOADER_H
  8. #define IVGUIMODULELOADER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "interface.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose: interface to accessing all loaded modules
  15. //-----------------------------------------------------------------------------
  16. abstract_class IVGuiModuleLoader : public IBaseInterface
  17. {
  18. public:
  19. virtual int GetModuleCount() = 0;
  20. virtual const char *GetModuleLabel(int moduleIndex) = 0;
  21. virtual CreateInterfaceFn GetModuleFactory(int moduleIndex) = 0;
  22. virtual bool ActivateModule(int moduleIndex) = 0;
  23. virtual bool ActivateModule(const char *moduleName) = 0;
  24. virtual void SetPlatformToRestart() = 0;
  25. };
  26. #define VGUIMODULELOADER_INTERFACE_VERSION "VGuiModuleLoader003"
  27. #endif // IVGUIMODULELOADER_H