<WorkerClass> Where to find them, how do the look, how to create custom ones?

Started by ShiraLillith, August 26, 2020, 05:15:11 AM

Previous topic - Next topic

ShiraLillith

Hey all, Total beginner here with close to 0 experience to modding or even programming, and basically I use Core and some other mods to learn..
Wanted to give a thought to a pawn when it has an item equipped and eventually found ThoughtDefs folder.
I noticed that every thought has a <WorkerClass>ToughtWorker_XYZ</WorkerClass> that is responsible for giving the colonists the Thoughts...
Of course by Googling workerclass I found out that it's used for much more, but I yet have to find how to create a custom one, or where to find one.
If anyone could help out I would be thankful.

cashkyle25

It is in C#. I recommend on getting ILSpy 'cause that's what I use to find code. You can find steps on how to get it here:: https://rimworldwiki.com/wiki/Modding_Tutorials :: you also need to get visual studio to code in C# (or at least that's what I recommend. You can watch this video that will help u set it up :: https://www.youtube.com/watch?v=JvP8TqCjmEg :: Those two things will allow you to make your own workerclass with visual studio and you can find code insanely faster with ILSpy. That is all that I know that may help. Good luck with your coding journey!
IFeedPigsBacon