C# 클래스 CaveworldFlora.GenClusterPlantReproduction

GenClusterPlantReproduction class.
파일 보기 프로젝트 열기: Rikiki123456789/Rimworld 1 사용 예제들

공개 메소드들

메소드 설명
IsClusterAreaClear ( ThingDef_ClusterPlant plantDef, int newDesiredClusterSize, IntVec3 position ) : bool

Check if there is another cluster too close.

IsValidPositionToGrowPlant ( ThingDef_ClusterPlant plantDef, IntVec3 position, bool checkTemperature = true ) : bool

Check if position is valid to grow a plant. Does not check cluster exclusivity!

TryGetRandomClusterSpawnCell ( ThingDef_ClusterPlant plantDef, int newDesiredClusterSize, bool checkTemperature, IntVec3 &spawnCell ) : void

Try to get a valid cell to spawn a new cluster anywhere on the map.

TryGetRandomSpawnCellAwayFromCluster ( Cluster cluster, int newDesiredClusterSize, IntVec3 &spawnCell ) : void

Try to get a valid cell to spawn a new cluster away from plant.

TryGetRandomSpawnCellNearCluster ( Cluster cluster, IntVec3 &spawnCell ) : void

Get a valid cell in this cluster to spawn another cave plant.

TryGrowCluster ( Cluster cluster ) : ClusterPlant

Try to spawn another plant in this cluster.

TrySpawnNewClusterAwayFrom ( Cluster cluster ) : ClusterPlant

Try to spawn a new cluster away from plant.

TryToReproduce ( ClusterPlant plant ) : ClusterPlant

Try to spawn another cave plant in the cluster or to spawn a new cluster.

TryToSpawnNewSymbiosisCluster ( Cluster cluster ) : ClusterPlant

메소드 상세

IsClusterAreaClear() 공개 정적인 메소드

Check if there is another cluster too close.
public static IsClusterAreaClear ( ThingDef_ClusterPlant plantDef, int newDesiredClusterSize, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
newDesiredClusterSize int
position IntVec3
리턴 bool

IsValidPositionToGrowPlant() 공개 정적인 메소드

Check if position is valid to grow a plant. Does not check cluster exclusivity!
public static IsValidPositionToGrowPlant ( ThingDef_ClusterPlant plantDef, IntVec3 position, bool checkTemperature = true ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
checkTemperature bool
리턴 bool

TryGetRandomClusterSpawnCell() 공개 정적인 메소드

Try to get a valid cell to spawn a new cluster anywhere on the map.
public static TryGetRandomClusterSpawnCell ( ThingDef_ClusterPlant plantDef, int newDesiredClusterSize, bool checkTemperature, IntVec3 &spawnCell ) : void
plantDef ThingDef_ClusterPlant
newDesiredClusterSize int
checkTemperature bool
spawnCell IntVec3
리턴 void

TryGetRandomSpawnCellAwayFromCluster() 공개 정적인 메소드

Try to get a valid cell to spawn a new cluster away from plant.
public static TryGetRandomSpawnCellAwayFromCluster ( Cluster cluster, int newDesiredClusterSize, IntVec3 &spawnCell ) : void
cluster Cluster
newDesiredClusterSize int
spawnCell IntVec3
리턴 void

TryGetRandomSpawnCellNearCluster() 공개 정적인 메소드

Get a valid cell in this cluster to spawn another cave plant.
public static TryGetRandomSpawnCellNearCluster ( Cluster cluster, IntVec3 &spawnCell ) : void
cluster Cluster
spawnCell IntVec3
리턴 void

TryGrowCluster() 공개 정적인 메소드

Try to spawn another plant in this cluster.
public static TryGrowCluster ( Cluster cluster ) : ClusterPlant
cluster Cluster
리턴 ClusterPlant

TrySpawnNewClusterAwayFrom() 공개 정적인 메소드

Try to spawn a new cluster away from plant.
public static TrySpawnNewClusterAwayFrom ( Cluster cluster ) : ClusterPlant
cluster Cluster
리턴 ClusterPlant

TryToReproduce() 공개 정적인 메소드

Try to spawn another cave plant in the cluster or to spawn a new cluster.
public static TryToReproduce ( ClusterPlant plant ) : ClusterPlant
plant ClusterPlant
리턴 ClusterPlant

TryToSpawnNewSymbiosisCluster() 공개 정적인 메소드

public static TryToSpawnNewSymbiosisCluster ( Cluster cluster ) : ClusterPlant
cluster Cluster
리턴 ClusterPlant