summaryrefslogtreecommitdiff
path: root/game/shared/econ/econ_contribution.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/econ/econ_contribution.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/econ/econ_contribution.h')
-rw-r--r--game/shared/econ/econ_contribution.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/game/shared/econ/econ_contribution.h b/game/shared/econ/econ_contribution.h
new file mode 100644
index 0000000..b46f87f
--- /dev/null
+++ b/game/shared/econ/econ_contribution.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Holds the CTFMapContribution object
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TFMAPCONTRIBUTION_H
+#define TFMAPCONTRIBUTION_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "gcsdk/protobufsharedobject.h"
+#include "tf_gcmessages.h"
+
+namespace GCSDK
+{
+ class CSQLAccess;
+};
+
+//---------------------------------------------------------------------------------
+// Purpose: All the account-level information that the GC tracks for TF
+//---------------------------------------------------------------------------------
+class CTFMapContribution : public GCSDK::CProtoBufSharedObject< CSOTFMapContribution, k_EEconTypeMapContribution >
+{
+#ifdef GC
+ DECLARE_CLASS_MEMPOOL( CTFMapContribution );
+#endif
+
+public:
+ CTFMapContribution() {}
+
+#ifdef GC
+ virtual bool BYieldingAddInsertToTransaction( GCSDK::CSQLAccess & sqlAccess );
+ virtual bool BYieldingAddWriteToTransaction( GCSDK::CSQLAccess & sqlAccess, const CUtlVector< int > &fields );
+ virtual bool BYieldingAddRemoveToTransaction( GCSDK::CSQLAccess & sqlAccess );
+
+ void WriteToRecord( CSchMapContribution *pMapContribution ) const;
+ void ReadFromRecord( const CSchMapContribution & mapContribution );
+#endif
+};
+
+#endif // TFMAPCONTRIBUTION_H
+