protected override Job TryGiveJob(Pawn pawn)
 {
     TransporterUtility.GetTransportersInGroup(pawn.mindState.duty.transportersGroup, pawn.Map, tmpTransporters);
     for (int i = 0; i < tmpTransporters.Count; i++)
     {
         CompTransporter transporter = tmpTransporters[i];
         if (LoadTransportersJobUtility.HasJobOnTransporter(pawn, transporter))
         {
             return(LoadTransportersJobUtility.JobOnTransporter(pawn, transporter));
         }
     }
     return(null);
 }
Beispiel #2
0
        public override Job JobOnThing(Pawn pawn, Thing t, bool forced = false)
        {
            CompTransporter transporter = t.TryGetComp <CompTransporter>();

            return(LoadTransportersJobUtility.JobOnTransporter(pawn, transporter));
        }