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.

40 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Holds the CEconClaimCode object
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ECON_CLAIMCODE_H
  8. #define ECON_CLAIMCODE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "gcsdk/protobufsharedobject.h"
  13. //---------------------------------------------------------------------------------
  14. // Purpose: All the account-level information that the GC tracks for TF
  15. //---------------------------------------------------------------------------------
  16. class CEconClaimCode : public GCSDK::CProtoBufSharedObject< CSOEconClaimCode, k_EEconTypeClaimCode >
  17. {
  18. #ifdef GC
  19. DECLARE_CLASS_MEMPOOL( CEconClaimCode );
  20. #endif
  21. public:
  22. #ifdef GC
  23. virtual bool BYieldingAddInsertToTransaction( GCSDK::CSQLAccess & sqlAccess );
  24. void WriteToRecord( CSchAssignedClaimCode *pClaimCode );
  25. void ReadFromRecord( const CSchAssignedClaimCode & mapContribution );
  26. #endif
  27. };
  28. #ifdef GC
  29. bool BBuildRedemptionURL( CEconClaimCode *pClaimCode, CUtlString &redemptionURL );
  30. #endif
  31. #endif // ECON_CLAIMCODE_H