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.

44 lines
1.9 KiB

  1. //========= Copyright (c), Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Holds the CEconGameAccountClient object
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ECON_GAME_ACCOUNT_CLIENT_H
  8. #define ECON_GAME_ACCOUNT_CLIENT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "gcsdk/protobufsharedobject.h"
  13. #include "base_gcmessages.pb.h"
  14. #include "cstrike15_gcmessages.pb.h"
  15. enum EGameAccountElevatedState_t
  16. {
  17. k_EGameAccountElevatedState_None, // account has no verified phone on file
  18. k_EGameAccountElevatedState_NotIdentifying, // account has phone, but it's not identifying
  19. k_EGameAccountElevatedState_AwaitingCooldown, // account has identifying phone, but it cannot be used to become elevated yet (cooldown on changes)
  20. k_EGameAccountElevatedState_Eligible, // account is apriori eligible to become premium, just needs to ask!
  21. k_EGameAccountElevatedState_EligibleWithTakeover, // account is completely eligible, just need to confirm the phone takeover
  22. k_EGameAccountElevatedState_Elevated, // account is fully elevated to premium
  23. k_EGameAccountElevatedState_AccountCooldown, // account has identifying phone, but it is a different phone than recently used for upgrading (so account has a cooldown)
  24. };
  25. //---------------------------------------------------------------------------------
  26. // Purpose: All the account-level information that the GC tracks
  27. //---------------------------------------------------------------------------------
  28. class CEconGameAccountClient : public GCSDK::CProtoBufSharedObject< CSOEconGameAccountClient, k_EEconTypeGameAccountClient >
  29. {
  30. public:
  31. uint32 ComputeXpBonusFlagsNow() const;
  32. };
  33. // Persona data shared to the game server
  34. class CEconPersonaDataPublic : public GCSDK::CProtoBufSharedObject < CSOPersonaDataPublic, k_EEconTypePersonaDataPublic >
  35. {
  36. public:
  37. };
  38. #endif //ECON_GAME_ACCOUNT_CLIENT_H