コード例 #1
0
        protected override Job TryGiveJob(Pawn pawn)
        {
            int transportersGroup = pawn.mindState.duty.transportersGroup;

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

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