feat(net): WORLD_FILES, WORLD_RELOAD and WORLD_FILES_STATUS master messages

Appended at the end of MessageType::Master (47-49); the pin test is
updated. A world sends its zone file list to master once it is ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 02:44:16 -05:00
parent e709855b7d
commit ab395a1af9
5 changed files with 319 additions and 1 deletions

View File

@@ -38,6 +38,7 @@
#include "BinaryPathFinder.h"
#include "FdbSnapshot.h"
#include "master/CDClientReload.h"
#include "master/WorldFiles.h"
#include "dPlatforms.h"
//RakNet includes:
@@ -717,6 +718,14 @@ int main(int argc, char** argv) {
worldReady.instanceID = static_cast<LWOINSTANCEID>(Game::server->GetInstanceID());
MasterPackets::SendToMaster(worldReady);
// The zone data files this world loaded; master watches them (docs/WorldHotReload.md)
WorldFilesReport files;
files.zoneId = Game::server->GetZoneID();
files.instanceId = Game::server->GetInstanceID();
files.cloneId = g_CloneID;
files.files = ZoneFileLog::Entries();
MasterPackets::SendToMaster(files);
ready = true;
}