diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-05-30 19:03:40 +0300 |
---|---|---|
committer | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-05-30 19:03:40 +0300 |
commit | e0b17934baa7c0d18e404eec2ca18a967eca7e81 (patch) | |
tree | e974d523033372fc9fd6ffab5a5f168dbe84ab2b /editor | |
parent | 82821e1ed30d9e923a08ea5a1fecaeabaac382ce (diff) |
Change interface for gui. Haven't been tested yet.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/user_stats.cpp | 5 | ||||
-rw-r--r-- | editor/user_stats.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp index 76788e0e75..cad45ce733 100644 --- a/editor/user_stats.cpp +++ b/editor/user_stats.cpp @@ -24,6 +24,11 @@ UserStats::UserStats(string const & userName) m_updateStatus = Update(); } +UserStats::UserStats(string const & userName, uint32_t rating, uint32_t changesCount) + : m_userName(userName), m_changesCount(changesCount), m_rank(rating), m_updateStatus(true) +{ +} + bool UserStats::IsChangesCountInitialized() const { return m_changesCount != kUninitialized; diff --git a/editor/user_stats.hpp b/editor/user_stats.hpp index 38f714bdcd..91c1dc8410 100644 --- a/editor/user_stats.hpp +++ b/editor/user_stats.hpp @@ -9,6 +9,7 @@ class UserStats { public: explicit UserStats(string const & userName); + explicit UserStats(string const & userName, uint32_t rating, uint32_t changesCount); bool IsChangesCountInitialized() const; bool IsRankInitialized() const; |