-
Notifications
You must be signed in to change notification settings - Fork 9
SHORTTUTORIAL: Jobs and Work
Roxx Ploxx edited this page May 26, 2017
·
2 revisions
In other words, I'd really like to find time to fill this in. There have been a lot of questions about this topic and even requests for me to create a page explaining it. Unfortunately, I don't know much about it... yet...
Hey @roxxploxx ! I really like the work you did there. Can I make a suggestion? I'd like to see a Workgiver, JobGiver, JobDriver (and hopefully too, JoyGiver) relational breakdown on there as well.
Here's what they submitted:
creating a new jobdef (or interactiondef, etc...)
can create a totally new jobdefof and just create that jobdef under it
forexample:
using System;
using Verse;
namespace RimWorld
{
[DefOf]
public static class SallyJobDefOf
{
public static JobDef Pleasure;
}
}
but remember to create the jobdef's xml thats residing in the JobDefs folder
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<JobDef>
<defName>Pleasure</defName>
<driverClass>JobDriver_Pleasure</driverClass>
<reportString>pleasuring TargetA.</reportString>
</JobDef>
</Defs>