C# Класс CaveworldFlora.GenClusterPlantReproduction

GenClusterPlantReproduction class.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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