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
1.2 KiB

  1. #include "econ_item_tools.h"
  2. //---------------------------------------------------------------------------------------
  3. // Purpose:
  4. //---------------------------------------------------------------------------------------
  5. class CEconTool_TFSpellbookPage : public IEconTool
  6. {
  7. public:
  8. CEconTool_TFSpellbookPage( const char *pszTypeName, item_capabilities_t unCapabilities )
  9. : IEconTool( pszTypeName, NULL, NULL, unCapabilities )
  10. {
  11. //
  12. }
  13. #ifdef CLIENT_DLL
  14. virtual bool ShouldDisplayAsUseableOnItemsInArmory() const { return false; }
  15. virtual void OnClientApplyTool( CEconItemView *pTool, CEconItemView *pSubject, vgui::Panel *pParent ) const;
  16. #endif // CLIENT_DLL
  17. };
  18. //---------------------------------------------------------------------------------------
  19. // Purpose:
  20. //---------------------------------------------------------------------------------------
  21. class CEconTool_TFEventEnableHalloween : public IEconTool
  22. {
  23. public:
  24. CEconTool_TFEventEnableHalloween( const char *pszTypeName, const char *pszUseString ) : IEconTool( pszTypeName, pszUseString, NULL, ITEM_CAP_NONE ) { }
  25. #ifdef CLIENT_DLL
  26. virtual void OnClientUseConsumable( CEconItemView *pItem, vgui::Panel *pParent ) const;
  27. #endif // CLIENT_DLL
  28. };