docs: Zones release numbers after the work rule areas move

This commit is contained in:
Fabian @ Blax Software 2026-11-30 22:33:43 +01:00
parent bf2e08098f
commit ee49ae523c
1 changed files with 3 additions and 3 deletions

View File

@ -396,7 +396,7 @@ Starter castes, manager tools, overlap warnings moved to 1.0 (2026-11-29). The r
#### Read-only API for Blax Zones #### Read-only API for Blax Zones
- **Players get:** Nothing visible on its own. With Blax Zones 1.5, a people sleeping zone can be limited to castes. - **Players get:** Nothing visible on its own. With Blax Zones 1.6, a people sleeping zone can be limited to castes.
- **How:** - **How:**
- `BlaxCastes.CastesApi` (static), Version 1: `Version`, `Active`, `CasteIdOf`, `CasteLabels`. Signatures in "Works with the other Blax mods". - `BlaxCastes.CastesApi` (static), Version 1: `Version`, `Active`, `CasteIdOf`, `CasteLabels`. Signatures in "Works with the other Blax mods".
- Ids are `"<token>:<id>"` in both members. The token is made with `Rand.Int` the first time the component needs it and saved with it; the string is cached on the caste (unsaved), so `CasteIdOf` allocates nothing. `CasteLabels()` builds a new `List<KeyValuePair<string, string>>` per call, sorted by label to match Castes' own pickers. Not a ValueTuple: Zones binds the exact return type. - Ids are `"<token>:<id>"` in both members. The token is made with `Rand.Int` the first time the component needs it and saved with it; the string is cached on the caste (unsaved), so `CasteIdOf` allocates nothing. `CasteLabels()` builds a new `List<KeyValuePair<string, string>>` per call, sorted by label to match Castes' own pickers. Not a ValueTuple: Zones binds the exact return type.
@ -608,10 +608,10 @@ Blax Slaves binds `HintJoinReason` and `NotifyJoined` by name and reads `Version
### Blax Zones ### Blax Zones
- Zones 1.5 limits people sleeping zones by caste when Castes is active, reading `Active`, `CasteLabels` and `CasteIdOf` (API version 1, Castes 1.1). Zones stores the token-prefixed ids per save and keeps them while Castes is missing. - Zones 1.6 limits people sleeping zones by caste when Castes is active, reading `Active`, `CasteLabels` and `CasteIdOf` (API version 1, Castes 1.1). Zones stores the token-prefixed ids per save and keeps them while Castes is missing.
- Castes has no bed or sleep slot. - Castes has no bed or sleep slot.
- The caste area slot (1.2) writes the vanilla allowed area, so Zones would need no API to read it. Zones never changes a pawn's allowed area. - The caste area slot (1.2) writes the vanilla allowed area, so Zones would need no API to read it. Zones never changes a pawn's allowed area.
- Zones 1.6 adds work rule areas: painted areas with rules such as "No cleaning", "Don't haul from here" or "Clean first". They are Zones' own grids in its MapComponent, not vanilla areas, so the caste area picker never lists them and `AreaManager.GetLabeled` (Verse/AreaManager.cs:86-96), which resolves the slot's label, never matches one. The rules apply to every pawn whatever its caste, and Zones reads no `CastesApi` member for them. The allowed area still bounds the work: the work search refuses anything outside it (RimWorld/JobGiver_Work.cs:219-226; RimWorld/ForbidUtility.cs:111-118, 157-165), so members of a caste kept to the fields never walk to a "Clean first" hospital. - Zones 1.3 adds work rule areas: painted areas with rules such as "No cleaning", "Don't haul from here" or "Clean first". They are Zones' own grids in its MapComponent, not vanilla areas, so the caste area picker never lists them and `AreaManager.GetLabeled` (Verse/AreaManager.cs:86-96), which resolves the slot's label, never matches one. The rules apply to every pawn whatever its caste, and Zones reads no `CastesApi` member for them. The allowed area still bounds the work: the work search refuses anything outside it (RimWorld/JobGiver_Work.cs:219-226; RimWorld/ForbidUtility.cs:111-118, 157-165), so members of a caste kept to the fields never walk to a "Clean first" hospital.
### Blax Defaults ### Blax Defaults