示例#1
0
 protected override Job TryGivePlayJob(Pawn pawn, Thing t)
 {
     if (!WatchBuildingUtility.TryFindBestWatchCell(t, pawn, def.desireSit, out IntVec3 result, out Building chair))
     {
         return(null);
     }
     return(new Job(def.jobDef, t, result, chair));
 }
示例#2
0
        protected override Job TryGivePlayJob(Pawn pawn, Thing t)
        {
            IntVec3  c;
            Building t2;

            if (!WatchBuildingUtility.TryFindBestWatchCell(t, pawn, this.def.desireSit, out c, out t2))
            {
                return(null);
            }
            return(new Job(this.def.jobDef, t, c, t2));
        }
示例#3
0
        protected override Job TryGivePlayJob(Pawn pawn, Thing t)
        {
            IntVec3  c  = default(IntVec3);
            Building t2 = default(Building);

            if (!WatchBuildingUtility.TryFindBestWatchCell(t, pawn, base.def.desireSit, out c, out t2))
            {
                return(null);
            }
            return(new Job(base.def.jobDef, t, c, t2));
        }