Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WorkGiver Question #1

Open
ToyWalrus opened this issue May 17, 2020 · 0 comments
Open

WorkGiver Question #1

ToyWalrus opened this issue May 17, 2020 · 0 comments

Comments

@ToyWalrus
Copy link

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'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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant