Skip to content

API Explorer

You should not have to know the exact method name before opening the documentation.

API
Workbench

API Explorer

Search by the job you want to do, not only by exact method names.

PW WBML-0001→0005 · WorldBox 0.3→0.6
Showing 18 of 18
SetKingdomInt / GetKingdomIntVerified

Store an integer on a kingdom; survived save/load and restart in the tested scope.

Evidence: WB 0.51.2 · NML 1.2.0.1 · PW API 1.14.0 · WBML-0001/0003
RegisterAction / ExecuteActionVerified

Registration and execution of political actions/conditions/effects in tested branches.

Evidence: WB 0.51.2 · NML 1.2.0.1 · PW API 1.14.0 · WBML-0005
Actor.getAge()Verified

Public zero-arg read; the canonical live sample returned 76, stability=same.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.3.0-fix1
Actor.hasTrait(ActorTrait)Verified

Parameterized query using an ActorTrait from runtime Actor.traits[].

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.4.0-fix2
City.countBuildings()Verified

Public City read; sample=100, owner=CityManager.dict.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.3.0-fix1
City.countBuildingsOfID("bonfire")Verified

ID came from a City.buildings_dict_id dictionary key; result=1.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.4.0-fix2
Kingdom.getPopulationTotal()Verified

Public Kingdom read; sample=14468, stability=same.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.3.0-fix1
Building.getCity()Verified

Public Building→City reference read.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.3.0-fix1
WorldTile.hasCity() / hasBuilding()Verified

Read-only tile occupancy helpers; sample true/false.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.3.0-fix1
ZoneCalculator.getZoneByID(0)Verified

Zone ID 0 came from a real _zones_dict_id dictionary key.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.4.0-fix2
ActorData scalar transactionReversible

Eight selected ActorData fields produced exact delta + exact restore with no residual/collateral fields.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.5.0
Actor.dieSimpleNone()Verified

Verified-Lifecycle: pinned manager/owner/registry cleanup plus 50/50 stale reads.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.6.0-fix5
City.destroyCity()Verified

Verified-Lifecycle through CityManager F:dict and Kingdom F:cities.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.6.0-fix5
Building.kill()Verified window

The same Building remained in pinned manager+owner for 30 frames; no permanent-persistence claim.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.6.0-fix5
Zero-city Kingdom windowVerified window

After all remaining cities were destroyed, the Kingdom stayed registered with zero cities for 120 frames.

Evidence: WB 0.51.2 · NML 1.2.0.1 · WBML 0.6.0-fix5

The Explorer now mixes two clearly scoped surfaces: the earlier runtime-tested PoliticalWorldAPI baseline through WBML-0005 and selected canonical WorldBox internals from WBML 0.3–0.6. Every item shows its own evidence scope; raw/internal WorldBox evidence is not presented as PoliticalWorldAPI.