Ejemplo n.º 1
0
        public static ThingDef CalculateWantedPlantDef(IntVec3 c, Map map)
        {
            IPlantToGrowSettable plantToGrowSettable = c.GetPlantToGrowSettable(map);

            if (plantToGrowSettable == null)
            {
                return(null);
            }
            return(plantToGrowSettable.GetPlantDefToGrow());
        }
Ejemplo n.º 2
0
        public static ThingDef CalculateWantedPlantDef(IntVec3 c, Map map)
        {
            IPlantToGrowSettable plantToGrowSettable = c.GetPlantToGrowSettable(map);
            ThingDef             result;

            if (plantToGrowSettable == null)
            {
                result = null;
            }
            else
            {
                result = plantToGrowSettable.GetPlantDefToGrow();
            }
            return(result);
        }
Ejemplo n.º 3
0
 public static ThingDef CalculateWantedPlantDef(IntVec3 c, Map map)
 {
     return(c.GetPlantToGrowSettable(map)?.GetPlantDefToGrow());
 }