mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
On the Instances page, behind world_reload; zone names from GameText. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
514 B
C++
20 lines
514 B
C++
#pragma once
|
|
|
|
#include "json.hpp"
|
|
|
|
struct WorldFilesStatus;
|
|
|
|
/**
|
|
* World hot reload on the dashboard (docs/WorldHotReload.md): the zone files each running world loaded, whether they
|
|
* changed on disk, and a Reload action per zone. The status comes from master (WORLD_FILES_STATUS) and is pushed to
|
|
* browsers on the world_files socket topic.
|
|
*/
|
|
namespace WorldReloadRoutes {
|
|
void RegisterRoutes();
|
|
|
|
// Master sent a status
|
|
void HandleStatus(const WorldFilesStatus& status);
|
|
|
|
nlohmann::json StatusJson();
|
|
}
|