feat(dashboard): draining (old version) badge; properties update when empty

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 04:03:22 -05:00
parent d71e44f3e1
commit 4c93c8fea7
5 changed files with 18 additions and 7 deletions

View File

@@ -42,6 +42,8 @@ struct WorldInstanceInfo {
// "starting" (launched, not connected yet) or "stopping" (in g_PendingWorlds), or "draining" for a world that is up
// but whose players are being moved to a new instance (in g_WorldInstances); empty for one that is just up
std::string state{};
// On an old binary or old zone files (a live update or world reload): takes nobody new and stops once empty
bool outdated{false};
};
// Where a server listens and the machine it runs on, from master's server list
@@ -88,7 +90,8 @@ namespace ServerState {
{"players", world.players},
{"isPrivate", world.isPrivate},
{"zoneName", world.zoneName},
{"state", world.state}
{"state", world.state},
{"outdated", world.outdated}
});
}