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.

50 lines
991 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //
  4. //
  5. //=============================================================================
  6. #ifndef TF_WEARABLE_LEVELABLE_ITEM_H
  7. #define TF_WEARABLE_LEVELABLE_ITEM_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "tf_item_wearable.h"
  12. #ifdef CLIENT_DLL
  13. #include "c_tf_player.h"
  14. #else
  15. #include "tf_player.h"
  16. #endif
  17. #ifdef CLIENT_DLL
  18. #define CTFWearableLevelableItem C_TFWearableLevelableItem
  19. #endif
  20. #define LEVELABLE_ITEM_BODYGROUP_NAME "level"
  21. //=============================================================================
  22. //
  23. //
  24. //
  25. class CTFWearableLevelableItem : public CTFWearable
  26. {
  27. DECLARE_CLASS( CTFWearableLevelableItem, CTFWearable );
  28. public:
  29. DECLARE_NETWORKCLASS();
  30. DECLARE_DATADESC();
  31. CTFWearableLevelableItem();
  32. void IncrementLevel();
  33. void ResetLevel();
  34. uint GetLevel( void ){ return m_unLevel; }
  35. private:
  36. CNetworkVar( uint, m_unLevel );
  37. };
  38. #endif // TF_WEARABLE_LEVELABLE_ITEM_H