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.

45 lines
1.1 KiB

  1. //===== Copyright � 2005-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: A higher level link library for general use in the game and tools.
  4. //
  5. //===========================================================================//
  6. #ifndef TIER3DM_H
  7. #define TIER3DM_H
  8. #if defined( _WIN32 )
  9. #pragma once
  10. #endif
  11. #include "tier3/tier3.h"
  12. #include "tier2/tier2dm.h"
  13. //-----------------------------------------------------------------------------
  14. // Helper empty implementation of an IAppSystem for tier2 libraries
  15. //-----------------------------------------------------------------------------
  16. template< class IInterface, int ConVarFlag = 0 >
  17. class CTier3DmAppSystem : public CTier2DmAppSystem< IInterface, ConVarFlag >
  18. {
  19. typedef CTier2DmAppSystem< IInterface, ConVarFlag > BaseClass;
  20. public:
  21. virtual bool Connect( CreateInterfaceFn factory )
  22. {
  23. if ( !BaseClass::Connect( factory ) )
  24. return false;
  25. ConnectTier3Libraries( &factory, 1 );
  26. return true;
  27. }
  28. virtual void Disconnect()
  29. {
  30. DisconnectTier3Libraries();
  31. BaseClass::Disconnect();
  32. }
  33. };
  34. #endif // TIER3DM_H