コード例 #1
0
        internal static bool IsDispenser(this JobDriver_SocialRelax obj)
        {
            var thing = obj.TargetThing(OptionalDrinkInd);

            if (thing == null)
            {
                return(false);
            }
            return(thing is Building_AutomatedFactory);
        }
コード例 #2
0
        internal static bool IsDrink(this JobDriver_SocialRelax obj)
        {
            var thing = obj.TargetThing(OptionalDrinkInd);

            if (thing == null)
            {
                return(false);
            }
            return(thing.def.IsAlcohol());
        }
コード例 #3
0
 internal static Building_AutomatedFactory Dispenser(this JobDriver_SocialRelax obj)
 {
     return(obj.TargetThing(OptionalDrinkInd) as Building_AutomatedFactory);
 }
コード例 #4
0
 internal static Thing Alcohol(this JobDriver_SocialRelax obj)
 {
     return(obj.TargetThing(OptionalDrinkInd));
 }
コード例 #5
0
 internal static bool HasDrinkOrDispenser(this JobDriver_SocialRelax obj)
 {
     return(obj.TargetThing(OptionalDrinkInd) != null);
 }
コード例 #6
0
 internal static Thing OccupyThing(this JobDriver_SocialRelax obj)
 {
     return(obj.TargetThing(ChairOrSpotInd));
 }
コード例 #7
0
 internal static bool HasChair(this JobDriver_SocialRelax obj)
 {
     return(obj.TargetThing(ChairOrSpotInd) != null);
 }
コード例 #8
0
 internal static Thing GatherSpotParent(this JobDriver_SocialRelax obj)
 {
     return(obj.TargetThing(GatherSpotParentInd));
 }