mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user