You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I really appreciate this repo wiki describing how Jobs work. I've spent many hours looking at and trying to find connections between the Rimworld code and other mods to see how Jobs work and I believe I'm close, but something is just not working. I was hoping you might be able to elaborate on the WorkGiver section -- I have a job that I would like assigned to any colonist with a construction skill. My job derives from WorkGiver_Scanner like I've seen from most code I've looked at, but I don't understand how the job gets put into the "global work queue" for lack of a better name.
What I've done so far is define a WorkGiverDef in the xml with reference to my work giver class. I've also added another Gizmo to some specific buildings that, when clicked, add a designation to the map's designationManager on that building. I think where I'm getting hung up is trying to figure out how designations link to jobs/work givers/etc. Or if they even are related. (What I'm more or less trying to emulate is the behavior that happens when you designate a wall to be deconstructed, for example, and a colonist will eventually carry that out)
Again, thanks for the wiki! Super helpful!
Cheers,
Trevor
The text was updated successfully, but these errors were encountered:
Hi there @Mehni
First of all, I really appreciate this repo wiki describing how Jobs work. I've spent many hours looking at and trying to find connections between the Rimworld code and other mods to see how Jobs work and I believe I'm close, but something is just not working. I was hoping you might be able to elaborate on the WorkGiver section -- I have a job that I would like assigned to any colonist with a construction skill. My job derives from
WorkGiver_Scanner
like I've seen from most code I've looked at, but I don't understand how the job gets put into the "global work queue" for lack of a better name.What I've done so far is define a
WorkGiverDef
in the xml with reference to my work giver class. I've also added another Gizmo to some specific buildings that, when clicked, add a designation to the map'sdesignationManager
on that building. I think where I'm getting hung up is trying to figure out how designations link to jobs/work givers/etc. Or if they even are related. (What I'm more or less trying to emulate is the behavior that happens when you designate a wall to be deconstructed, for example, and a colonist will eventually carry that out)Again, thanks for the wiki! Super helpful!
Cheers,
Trevor
The text was updated successfully, but these errors were encountered: