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.

40 lines
1.0 KiB

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