summaryrefslogtreecommitdiff
path: root/game/shared/econ/econ_claimcode.h
blob: 06b85f681292e09c302dccad2a3ce0b42caf10dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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