mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
Core/Account: Add total time played in account (#1003)
This saves the total time played on the account, even if your characters have been deleted.
This commit is contained in:
@@ -185,7 +185,7 @@ class CharacterCreateInfo
|
||||
class WorldSession
|
||||
{
|
||||
public:
|
||||
WorldSession(uint32 id, WorldSocket* sock, AccountTypes sec, uint8 expansion, time_t mute_time, LocaleConstant locale, uint32 recruiter, bool isARecruiter, bool skipQueue);
|
||||
WorldSession(uint32 id, WorldSocket* sock, AccountTypes sec, uint8 expansion, time_t mute_time, LocaleConstant locale, uint32 recruiter, bool isARecruiter, bool skipQueue, uint32 TotalTime);
|
||||
~WorldSession();
|
||||
|
||||
bool PlayerLoading() const { return m_playerLoading; }
|
||||
@@ -223,6 +223,9 @@ class WorldSession
|
||||
void SetPlayer(Player* player);
|
||||
uint8 Expansion() const { return m_expansion; }
|
||||
|
||||
void SetTotalTime(uint32 TotalTime) { m_total_time = TotalTime; }
|
||||
uint32 GetTotalTime() const { return m_total_time; }
|
||||
|
||||
void InitWarden(BigNumber* k, std::string const& os);
|
||||
|
||||
/// Session in auth.queue currently
|
||||
@@ -964,6 +967,7 @@ class WorldSession
|
||||
bool _skipQueue;
|
||||
uint32 _accountId;
|
||||
uint8 m_expansion;
|
||||
uint32 m_total_time;
|
||||
|
||||
typedef std::list<AddonInfo> AddonsList;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user