Counter Strike : Global Offensive Source Code
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.

45 lines
1.3 KiB

  1. //========= Copyright (c), Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Holds the CTFMapContribution object
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TFMAPCONTRIBUTION_H
  8. #define TFMAPCONTRIBUTION_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "gcsdk/protobufsharedobject.h"
  13. #include "tf_gcmessages.h"
  14. namespace GCSDK
  15. {
  16. class CSQLAccess;
  17. };
  18. //---------------------------------------------------------------------------------
  19. // Purpose: All the account-level information that the GC tracks for TF
  20. //---------------------------------------------------------------------------------
  21. class CTFMapContribution : public GCSDK::CProtoBufSharedObject< CSOTFMapContribution, k_EEconTypeMapContribution >
  22. {
  23. #ifdef GC
  24. DECLARE_CLASS_MEMPOOL( CTFMapContribution );
  25. #endif
  26. public:
  27. CTFMapContribution() {}
  28. #ifdef GC
  29. virtual bool BYieldingAddInsertToTransaction( GCSDK::CSQLAccess & sqlAccess );
  30. virtual bool BYieldingAddWriteToTransaction( GCSDK::CSQLAccess & sqlAccess, const CUtlVector< int > &fields );
  31. virtual bool BYieldingAddRemoveToTransaction( GCSDK::CSQLAccess & sqlAccess );
  32. void WriteToRecord( CSchMapContribution *pMapContribution ) const;
  33. void ReadFromRecord( const CSchMapContribution & mapContribution );
  34. #endif
  35. };
  36. #endif // TFMAPCONTRIBUTION_H