mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-20 19:52:48 +00:00
feat(dashboard): 3D views show a zone's scenes as the game loads them
A "Scenes" choice in the world and property 3D views: every scene (as before), the scenes the game keeps loaded around the camera or the followed player (the scene under it from the terrain's scene map, the scenes its transitions connect to, and the global scene, following as it moves), or scenes picked from a list (world view). The lighting blends to the lighting of the scene under the focus, as the client blends between scenes. The scenery manifest now carries each object's scene, the zone's scenes with their neighbours and lighting, and the scene map as runs (37 KB for Avant Gardens); scenery-core.js finds the scene at a point exactly as ZoneScenes does (checked against it on 2000 points of Avant Gardens). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -595,6 +595,10 @@ std::optional<std::string> ZoneTerrainJson(uint32_t zoneId) {
|
||||
namespace {
|
||||
}
|
||||
|
||||
std::string ZoneDataBase64(std::string_view bytes) {
|
||||
return Base64(bytes);
|
||||
}
|
||||
|
||||
std::optional<Raw::Raw> ZoneRaw(uint32_t zoneId) {
|
||||
const auto zone = GetZoneInfo(zoneId);
|
||||
return zone ? ReadZoneRaw(*zone) : std::nullopt;
|
||||
|
||||
Reference in New Issue
Block a user