mehni / examplejob Goto Github PK
View Code? Open in Web Editor NEWBreaks down the creation of a custom Job, from top to bottom.
Breaks down the creation of a custom Job, from top to bottom.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.