Home › Dev CE (experimental) › PlayerGovernors
Experimental: needs Dev CE (
fork of the Community Extension, release zip and source). A GameCore that adds these Lua methods by calling engine functions directly. Not part of the upstream Community Extension, single-player testing only. Descriptions on these pages were written by an AI assistant from decompiled code and are marked inferred unless a test result confirms them.
PlayerGovernors
5 methods (Dev CE test build). this is found with the game's own IPlayerGovernors instance resolver (virtual).
| Method |
Signature |
Purpose (AI-written, inferred) |
Tested |
Engine function |
Current |
| CanAppoint |
PlayerGovernors:CanAppoint() → boolean |
Returns true if the player has unspent governor points, at least one governor type not yet appointed, and the appointed count does not exceed a game parameter limit. |
plumbing ✓ |
— |
0x2dd760 |
| CanEverEarnPromotion |
PlayerGovernors:CanEverEarnPromotion(eGovernor: integer, ePromotion: integer) → boolean |
Returns true if the given governor appears in the governor list of the given promotion definition. |
plumbing ✓ |
— |
0x2de080 |
| CanPromote |
PlayerGovernors:CanPromote() → boolean |
Returns true if the player has unspent governor points and any appointed governor still lacks one of its definition promotions. |
plumbing ✓ |
— |
0x2de100 |
| DoTurn |
PlayerGovernors:DoTurn() |
Per-turn update for each appointed governor: increments turns on site, counts down neutralization, notifies when it ends, and sends a per-governor turn event. |
plumbing ✓ |
— |
0x2de6a0 |
| HasGovernor |
PlayerGovernors:HasGovernor(eGovernor: integer) → boolean |
Returns true if a governor of the given type is in the player's appointed list. |
plumbing ✓ |
— |
0x2def90 |
Details
CanAppoint
Input checks: No input.
Multiplayer: read-only, getter. Risk: low (getter). Confidence of the reading: medium.
CanEverEarnPromotion
Arguments: eGovernor — governor type; ePromotion — promotion type
Input checks: Returns false for -1 args; promotion index is bounds-checked but a null definition would then be dereferenced.
Multiplayer: read-only, getter. Risk: low (getter). Confidence of the reading: medium.
CanPromote
Input checks: No input.
Multiplayer: read-only, getter. Risk: low (getter). Confidence of the reading: medium.
DoTurn
Writes
- governor turns-on-site
- governor neutralized turns decremented
Side effects
- notification when neutralization ends
- Reporting event sent per governor each turn
Input checks: None.
Multiplayer: may-desync, changes governor state and sends events. Risk: medium (state change and events). Confidence of the reading: medium.
HasGovernor
Arguments: eGovernor — governor type to look for
Input checks: List scan; no range check needed.
Multiplayer: read-only, getter. Risk: low (getter). Confidence of the reading: high.