diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/econ/econ_claimcode.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/econ/econ_claimcode.h')
| -rw-r--r-- | game/shared/econ/econ_claimcode.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/game/shared/econ/econ_claimcode.h b/game/shared/econ/econ_claimcode.h new file mode 100644 index 0000000..06b85f6 --- /dev/null +++ b/game/shared/econ/econ_claimcode.h @@ -0,0 +1,40 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Holds the CEconClaimCode object +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef ECON_CLAIMCODE_H +#define ECON_CLAIMCODE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "gcsdk/protobufsharedobject.h" + +//--------------------------------------------------------------------------------- +// Purpose: All the account-level information that the GC tracks for TF +//--------------------------------------------------------------------------------- +class CEconClaimCode : public GCSDK::CProtoBufSharedObject< CSOEconClaimCode, k_EEconTypeClaimCode > +{ +#ifdef GC + DECLARE_CLASS_MEMPOOL( CEconClaimCode ); +#endif + +public: + +#ifdef GC + virtual bool BYieldingAddInsertToTransaction( GCSDK::CSQLAccess & sqlAccess ); + + void WriteToRecord( CSchAssignedClaimCode *pClaimCode ); + void ReadFromRecord( const CSchAssignedClaimCode & mapContribution ); +#endif +}; + +#ifdef GC +bool BBuildRedemptionURL( CEconClaimCode *pClaimCode, CUtlString &redemptionURL ); +#endif + +#endif // ECON_CLAIMCODE_H + |