mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-19 11:12:49 +00:00
feat(world-reload): keep properties until empty
Busy property instances on changed files are kept (KEEP_UNTIL_EMPTY) instead of saved, frozen and moved. Every instance acted on is marked outdated; the files status carries the flag (bit 4). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,7 @@ namespace {
|
||||
nlohmann::json instances = nlohmann::json::array();
|
||||
for (const auto& instance : zone.instances) {
|
||||
instances.push_back({ {"instance", instance.instanceId}, {"clone", instance.cloneId}, {"players", instance.players},
|
||||
{"stale", instance.stale}, {"reloading", instance.reloading} });
|
||||
{"stale", instance.stale}, {"reloading", instance.reloading}, {"outdated", instance.outdated} });
|
||||
}
|
||||
zones.push_back({ {"zone", zone.zoneId}, {"zoneName", GameText::ZoneName(zone.zoneId)}, {"changed", changed},
|
||||
{"files", files}, {"instances", instances}, {"message", zone.message} });
|
||||
|
||||
Reference in New Issue
Block a user