mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
feat(master): report the UGC server in the server list and wait for it on shutdown
The server list now carries whether master starts the UGC server, whether it is connected and the pid it was started as. Settings reloads reach it like auth and chat, and shutdown waits for it. The UGC server sends its totals and storage with its traffic reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -241,6 +241,9 @@ namespace MasterPackets {
|
||||
bitStream.Write(instance.port);
|
||||
bitStream.Write(instance.isPrivate);
|
||||
}
|
||||
bitStream.Write(ugcEnabled);
|
||||
bitStream.Write(ugcOnline);
|
||||
bitStream.Write(ugcPid);
|
||||
}
|
||||
|
||||
bool ServerListResponse::Deserialize(RakNet::BitStream& bitStream) {
|
||||
@@ -259,6 +262,9 @@ namespace MasterPackets {
|
||||
VALIDATE_READ(bitStream.Read(instance.port));
|
||||
VALIDATE_READ(bitStream.Read(instance.isPrivate));
|
||||
}
|
||||
VALIDATE_READ(bitStream.Read(ugcEnabled));
|
||||
VALIDATE_READ(bitStream.Read(ugcOnline));
|
||||
VALIDATE_READ(bitStream.Read(ugcPid));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user