mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 13:38:21 +00:00
[Code] LoginServerList Global to Singleton Cleanup (#4941)
This commit is contained in:
@@ -21,6 +21,13 @@ public:
|
||||
bool SendAccountUpdate(ServerPacket *pack);
|
||||
bool Connected();
|
||||
size_t GetServerCount() const { return m_list.size(); }
|
||||
|
||||
static LoginServerList* Instance()
|
||||
{
|
||||
static LoginServerList instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
protected:
|
||||
std::list<std::unique_ptr<LoginServer>> m_list;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user