Preparation for NPC jobs - add data to categorize job roles and duties #34255
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Features "Preparation for NPC jobs - add data to categorize job roles and duties"
Purpose of change
This adds support for NPC job categories and what activities may relate to them.
Describe the solution
Added a bunch of npc_job enums, and associated functions to set/get/clear/get name.
added a map of job_id to std::vector<activity_id> to associate what job categories go with what activities.
The thinking being, an NPC assigned to a camp, and given a job will periodically scan for work to do , based on the activities in that list.
Nothing uses this yet - this is preparation and a conscious realization that I need to break my huge PRs up more into smaller, easier to review sections.
Describe alternatives you've considered
I've copied the structure of NPCATT_*
now this may be what people call "cargo-cult programming"? as NPCATT may be the "wrong" thing to copy, so I'll take guidance on a more logical structure for this sort of thing.
Additional context
N/A