Actions
Feature #1490
openLua API: workers control
Start date:
06/07/2025
Due date:
% Done:
0%
Estimated time:
Description
Since we have a function for manipulating specialists server-side, logically we could have API to place or remove workers:
- (City):work_tile(Tile t, Specialist pref_spec?)
- (City):work_tile(Tile t, Tile take_from)
- (City):reclaim_worker(Tile t, Specialist pref_spec?)
- (City):reclaim_all_workers()
- (City):auto_arrange_workers()
- (City):worked_iterate(bool center?)
- (City):cma_controlled() -- this maybe could return cma name, see my 2.6 tweaked branch
This allows saving and restoring citizens state. Functions for pinning workers/switching CMA on and off/placing tasks/etc may be added later if needed
Actions