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.

39 lines
925 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef TF_ITEM_SYSTEM_H
  7. #define TF_ITEM_SYSTEM_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "econ_item_system.h"
  12. #include "tf_item_constants.h"
  13. //-----------------------------------------------------------------------------
  14. // Criteria used by the system to generate a base item for a slot in a class's loadout
  15. struct baseitemcriteria_t
  16. {
  17. baseitemcriteria_t()
  18. {
  19. iClass = 0;
  20. iSlot = LOADOUT_POSITION_INVALID;
  21. }
  22. int iClass;
  23. int iSlot;
  24. };
  25. class CTFItemSystem : public CEconItemSystem
  26. {
  27. public:
  28. // Select and return the base item definition index for a class's load-out slot
  29. virtual item_definition_index_t GenerateBaseItem( baseitemcriteria_t *pCriteria );
  30. };
  31. CTFItemSystem *TFItemSystem( void );
  32. #endif // TF_ITEM_SYSTEM_H