Team Fortress 2 Source Code as on 22/4/2020
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.

57 lines
2.1 KiB

  1. //========= Copyright 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. kGameAccountFlags_UpdatedPresetOriginalItemIDs = 1 << 11,
  28. kGameAccountFlags_GC_UpgradedToPremium = 1 << 12, // we did something (used an item, whatever) on the GC that means the GC has decided we're premium regardless of what Steam says
  29. // Deprecated
  30. // kGameAccountFlags_InitializedSkillRating = 1 << 13,
  31. // kGameAccountFlags_InitializedSkillRating6v6 = 1 << 14,
  32. // kGameAccountFlags_InitializedSkillRating9v9 = 1 << 15,
  33. kGameAccountFlags_InitializedKickBucket = 1 << 16,
  34. };
  35. //---------------------------------------------------------------------------------
  36. // Purpose: All the account-level information that the GC tracks
  37. //---------------------------------------------------------------------------------
  38. class CEconGameAccount : public GCSDK::CSchemaSharedObject< CSchGameAccount, k_EEconTypeGameAccount >
  39. {
  40. #ifdef GC_DLL
  41. DECLARE_CLASS_MEMPOOL( CEconGameAccount );
  42. #endif
  43. public:
  44. CEconGameAccount() {}
  45. CEconGameAccount( uint32 unAccountID )
  46. {
  47. Obj().m_unAccountID = unAccountID;
  48. Obj().m_rtime32FirstPlayed = CRTime::RTime32TimeCur();
  49. }
  50. };
  51. #endif //ECON_GAME_ACCOUNT_H