GithubHelp home page GithubHelp logo

examplejob's People

Contributors

mehni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

brohandzer0

examplejob's Issues

WorkGiver Question

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.