City runtime reference
Evidence scope: WorldBox 0.51.2 build 719 / NML 1.2.0.1.
Zero-argument reads — owner CityManager.dict{value}
Заголовок раздела «Zero-argument reads — owner CityManager.dict{value}»| Signature | Access | Sample | Stability |
|---|---|---|---|
countBuildings()->Int32 |
public | 100 |
same |
countWarriors()->Int32 |
public | 188 |
same |
countZones()->Int32 |
public | 110 |
same |
getArmy()->Army |
public | reference | same |
getCachedLoyalty()->Int32 |
public | 195 |
same |
getCulture()->Culture |
public | reference | same |
getLanguage()->Language |
public | reference | same |
Это values одного sample.
Parameterized queries — semantic provenance
Заголовок раздела «Parameterized queries — semantic provenance»| Signature | Access | Argument provenance | Sample result |
|---|---|---|---|
countBuildingsOfID(String)->Int32 |
public | key City.buildings_dict_id: bonfire |
1 |
getBuildingListOfID(String)->List<Building> |
internal | тот же City dictionary key | count 1 |
getBuildingListOfType(String)->List<Building> |
internal | key City.buildings_dict_type: type_bonfire |
count 1 |
getSubspeciesId(String)->Int64 |
public | key City._species: human |
2 |
Reversible CityData — 6 records
Заголовок раздела «Reversible CityData — 6 records»total_food_consumed, total_leaders, renown, total_births, total_deaths, total_kills.
Lifecycle destroyCity()
Заголовок раздела «Lifecycle destroyCity()»Canonical 0.6 fix5 закрепил CityManager F:dict и owner Kingdom F:cities:
manager count 32 → 31owner city count 6 → 5manager_removed = trueowner_removed = trueregistry_removed = truestale_reads_safe = 50reintroduced = falseЭто VERIFIED-LIFECYCLE natural path.
Quick City · Parameterized atlas · Safe mutations · Lifecycle