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.

34 lines
1.1 KiB

  1. //========= Copyright (c), Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CEconCoupons - Limited time offers to purchase an econ item
  4. //
  5. //=============================================================================//
  6. #pragma once
  7. #include "gcsdk/protobufsharedobject.h"
  8. #include "cstrike15_gcmessages.pb.h"
  9. class CEconCoupon : public GCSDK::CProtoBufSharedObject< CSOEconCoupon, k_EEconTypeCoupon >
  10. {
  11. #ifdef GC_DLL
  12. DECLARE_CLASS_MEMPOOL_MT( CEconCoupon );
  13. enum { k_MaxNumCoupons = 4 }; // Must match SCH declaration
  14. #endif
  15. public:
  16. const static int k_nTypeID = k_EEconTypeCoupon;
  17. virtual int GetTypeID() const
  18. {
  19. return k_nTypeID;
  20. }
  21. #ifdef GC
  22. // virtual bool BYieldingAddWriteToTransaction( GCSDK::CSQLAccess &sqlAccess, const CUtlVector< int > &fields );
  23. // virtual bool BYieldingAddInsertToTransaction( GCSDK::CSQLAccess & sqlAccess );
  24. // virtual bool BYieldingAddRemoveToTransaction( GCSDK::CSQLAccess &sqlAccess );
  25. // void WriteToRecord( CSchCoupons *pSchRecord );
  26. // void ReadFromRecord( const CSchCoupons &rSchRecord );
  27. #endif
  28. };