refactor: removed m_MojangAPI from RankManager (#5483)
* refactor: removed m_MojangAPI from RankManager * docs: updated CONTRIBUTORS
This commit is contained in:
parent
ceaebd00d8
commit
dcad86e776
@ -78,6 +78,7 @@ Seadragon91 (Lukas Pioch)
|
|||||||
Sofapriester
|
Sofapriester
|
||||||
Spekdrum (Pablo Beltran)
|
Spekdrum (Pablo Beltran)
|
||||||
SphinxC0re
|
SphinxC0re
|
||||||
|
steve-nzr
|
||||||
structinf (xdot)
|
structinf (xdot)
|
||||||
sweetgiorni
|
sweetgiorni
|
||||||
Sxw1212
|
Sxw1212
|
||||||
|
@ -17,8 +17,7 @@
|
|||||||
|
|
||||||
cRankManager::cRankManager(void) :
|
cRankManager::cRankManager(void) :
|
||||||
m_DB("Ranks.sqlite", SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE),
|
m_DB("Ranks.sqlite", SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE),
|
||||||
m_IsInitialized(false),
|
m_IsInitialized(false)
|
||||||
m_MojangAPI(nullptr)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,10 +27,6 @@ cRankManager::cRankManager(void) :
|
|||||||
|
|
||||||
cRankManager::~cRankManager()
|
cRankManager::~cRankManager()
|
||||||
{
|
{
|
||||||
if (m_MojangAPI != nullptr)
|
|
||||||
{
|
|
||||||
m_MojangAPI->SetRankManager(nullptr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -273,11 +273,6 @@ protected:
|
|||||||
/** Set to true once the manager is initialized. */
|
/** Set to true once the manager is initialized. */
|
||||||
bool m_IsInitialized;
|
bool m_IsInitialized;
|
||||||
|
|
||||||
/** The MojangAPI instance that is used for keeping player names and UUIDs in sync.
|
|
||||||
Set in Initialize(), may be nullptr. */
|
|
||||||
cMojangAPI * m_MojangAPI;
|
|
||||||
|
|
||||||
|
|
||||||
/** Returns true if all the DB tables are empty, indicating a fresh new install. */
|
/** Returns true if all the DB tables are empty, indicating a fresh new install. */
|
||||||
bool AreDBTablesEmpty(void);
|
bool AreDBTablesEmpty(void);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user