コード例 #1
0
        public static ThingDef CalculateWantedPlantDef(IntVec3 c, Map map)
        {
            IPlantToGrowSettable plantToGrowSettable = c.GetPlantToGrowSettable(map);

            if (plantToGrowSettable == null)
            {
                return(null);
            }
            return(plantToGrowSettable.GetPlantDefToGrow());
        }
コード例 #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);
        }
コード例 #3
0
ファイル: WorkGiver_Grower.cs プロジェクト: potsh/RimWorld
 public static ThingDef CalculateWantedPlantDef(IntVec3 c, Map map)
 {
     return(c.GetPlantToGrowSettable(map)?.GetPlantDefToGrow());
 }