mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-05 20:22:28 +00:00
Final
This commit is contained in:
parent
6e0c7ea91c
commit
43e50352a9
@ -28,7 +28,6 @@ Database database;
|
|||||||
std::string WorldShortName;
|
std::string WorldShortName;
|
||||||
const queryservconfig *Config;
|
const queryservconfig *Config;
|
||||||
WorldServer *worldserver = 0;
|
WorldServer *worldserver = 0;
|
||||||
ZSList zs_list;
|
|
||||||
uint32 numzones = 0;
|
uint32 numzones = 0;
|
||||||
|
|
||||||
void CatchSignal(int sig_num)
|
void CatchSignal(int sig_num)
|
||||||
@ -122,7 +121,7 @@ int main()
|
|||||||
server_connection->OnConnectionIdentified(
|
server_connection->OnConnectionIdentified(
|
||||||
"Zone", [&console](std::shared_ptr<EQ::Net::ServertalkServerConnection> connection) {
|
"Zone", [&console](std::shared_ptr<EQ::Net::ServertalkServerConnection> connection) {
|
||||||
numzones++;
|
numzones++;
|
||||||
zs_list.Add(new ZoneServer(connection, console.get()));
|
ZSList::Instance()->Add(new ZoneServer(connection, console.get()));
|
||||||
|
|
||||||
LogInfo(
|
LogInfo(
|
||||||
"New Zone Server connection from [{}] at [{}:{}] zone_count [{}]",
|
"New Zone Server connection from [{}] at [{}:{}] zone_count [{}]",
|
||||||
@ -137,7 +136,7 @@ int main()
|
|||||||
server_connection->OnConnectionRemoved(
|
server_connection->OnConnectionRemoved(
|
||||||
"Zone", [](std::shared_ptr<EQ::Net::ServertalkServerConnection> connection) {
|
"Zone", [](std::shared_ptr<EQ::Net::ServertalkServerConnection> connection) {
|
||||||
numzones--;
|
numzones--;
|
||||||
zs_list.Remove(connection->GetUUID());
|
ZSList::Instance()->Remove(connection->GetUUID());
|
||||||
|
|
||||||
LogInfo(
|
LogInfo(
|
||||||
"Removed Zone Server connection from [{}] total zone_count [{}]",
|
"Removed Zone Server connection from [{}] total zone_count [{}]",
|
||||||
|
|||||||
@ -17,6 +17,12 @@ public:
|
|||||||
void Remove(const std::string& uuid);
|
void Remove(const std::string& uuid);
|
||||||
void SendPlayerEventLogSettings();
|
void SendPlayerEventLogSettings();
|
||||||
|
|
||||||
|
static ZSList* Instance()
|
||||||
|
{
|
||||||
|
static ZSList instance;
|
||||||
|
return &instance;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::list<std::unique_ptr<ZoneServer>> zone_server_list;
|
std::list<std::unique_ptr<ZoneServer>> zone_server_list;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user