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.

49 lines
1.6 KiB

  1. //========= Copyright (c), Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Holds the CEconGameAccount object
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ECON_GAME_ACCOUNT_H
  8. #define ECON_GAME_ACCOUNT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "gcsdk/schemasharedobject.h"
  13. #include "rtime.h"
  14. enum
  15. {
  16. kGameAccountFlags_ConvertedUniques = 1 << 0,
  17. kGameAccountFlags_MadeFirstPurchase = 1 << 1,
  18. kGameAccountFlags_ConvertItemFlagsToOrigin = 1 << 2,
  19. kGameAccountFlags_ConvertPackageItemGrants = 1 << 3,
  20. kGameAccountFlags_RemoveCafeOrSchoolItems = 1 << 4,
  21. kGameAccountFlags_CleanupItemNames = 1 << 5,
  22. kGameAccountFlags_NeedToChooseMostHelpfulFriend = 1 << 6,
  23. kGameAccountFlags_DONT_USE_THIS_BUI_LIES = 1 << 7, // some accounts might have this set! it used to be the "needs to thank a friend" bit
  24. kGameAccountFlags_OwnedGameServersDisabled = 1 << 8,
  25. kGameAccountFlags_UpdatedEquippedSlots = 1 << 9,
  26. kGameAccountFlags_MadeFirstWebPurchase = 1 << 10,
  27. };
  28. //---------------------------------------------------------------------------------
  29. // Purpose: All the account-level information that the GC tracks
  30. //---------------------------------------------------------------------------------
  31. class CEconGameAccount : public GCSDK::CSchemaSharedObject< CSchGameAccount, k_EEconTypeGameAccount >
  32. {
  33. #ifdef GC_DLL
  34. DECLARE_CLASS_MEMPOOL( CEconGameAccount );
  35. #endif
  36. public:
  37. CEconGameAccount() {}
  38. CEconGameAccount( uint32 unAccountID )
  39. {
  40. Obj().m_unAccountID = unAccountID;
  41. }
  42. };
  43. #endif //ECON_GAME_ACCOUNT_H