CI: World-API-Regionsliste gegen Online-Regionen pruefen

This commit is contained in:
OpenGenesis (MPL 2.0) committed 2026-10-07 23:43:01 +02:00
1 parent 07d7cf3c70
commit aa4c16ed38
1 file changed
+14
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env python3
from pathlib import Path
api = Path("NexVerse/Server/Api/NexVerseUserApi.cs").read_text(encoding="utf-8")
start = api.index("public IReadOnlyList<NexRegionRecord> SearchHomeRegions")
end = api.index("public NexRegionRecord ResolveHomeRegion", start)
section = api[start:end]
assert "m_Grid.GetOnlineRegions(" in section
assert "safeLimit" in section
assert "m_Grid.GetDefaultRegions(UUID.Zero)" not in section
print("World API online region listing contract: OK")