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:
@@ -262,6 +262,11 @@ namespace MasterPackets {
|
||||
uint8_t authOnline{};
|
||||
uint8_t chatOnline{};
|
||||
std::vector<Instance> instances; // u32 count
|
||||
// The UGC server (docs/UgcServer.md), after the instances: whether master starts it (enable_ugc_server),
|
||||
// whether it is connected, and the process id master last started it as (0: unknown)
|
||||
uint8_t ugcEnabled{};
|
||||
uint8_t ugcOnline{};
|
||||
uint32_t ugcPid{};
|
||||
|
||||
ServerListResponse() : LUBitStream(ServiceType::MASTER, MessageType::Master::SERVER_LIST_RESPONSE) {}
|
||||
void Serialize(RakNet::BitStream& bitStream) const override;
|
||||
|
||||
Reference in New Issue
Block a user