C# Класс CaveworldFlora.ClusterPlant

ClusterPlant class.
Наследование: Plant
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
cluster Cluster
glower Thing

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

Метод Описание
CanTerrainSupportPlantAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void

Destroy the plant and the associated glower if existing.

ExposeData ( ) : void

Save and load internal state variables (stored in savegame data).

GetInspectString ( ) : string

Build the inspect string.

IsFertilityConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
IsLightConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
IsNaturalRoughRockAt ( IntVec3 position ) : bool
IsNearNaturalRockBlock ( IntVec3 position ) : bool
IsTemperatureConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
SpawnSetup ( ) : void

Initialize instance variables.

TickLong ( ) : void

Main function: - update the glower if necessary. - verify the cave plant is in good conditions to growth. - when the cave plant is too old, damage it over time. - when the cave plant is mature, try to reproduce.

UpdateGlowerAccordingToGrowth ( ) : void

Update the glower according to the plant growth, cryostatis state and snow depth.

Защищенные методы

Метод Описание
TryToDestroyGlower ( ) : void

Описание методов

CanTerrainSupportPlantAt() публичный статический Метод

public static CanTerrainSupportPlantAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
Результат bool

Destroy() публичный Метод

Destroy the plant and the associated glower if existing.
public Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void
mode DestroyMode
Результат void

ExposeData() публичный Метод

Save and load internal state variables (stored in savegame data).
public ExposeData ( ) : void
Результат void

GetInspectString() публичный Метод

Build the inspect string.
public GetInspectString ( ) : string
Результат string

IsFertilityConditionOkAt() публичный статический Метод

public static IsFertilityConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
Результат bool

IsLightConditionOkAt() публичный статический Метод

public static IsLightConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
Результат bool

IsNaturalRoughRockAt() публичный статический Метод

public static IsNaturalRoughRockAt ( IntVec3 position ) : bool
position IntVec3
Результат bool

IsNearNaturalRockBlock() публичный статический Метод

public static IsNearNaturalRockBlock ( IntVec3 position ) : bool
position IntVec3
Результат bool

IsTemperatureConditionOkAt() публичный статический Метод

public static IsTemperatureConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
Результат bool

SpawnSetup() публичный Метод

Initialize instance variables.
public SpawnSetup ( ) : void
Результат void

TickLong() публичный Метод

Main function: - update the glower if necessary. - verify the cave plant is in good conditions to growth. - when the cave plant is too old, damage it over time. - when the cave plant is mature, try to reproduce.
public TickLong ( ) : void
Результат void

TryToDestroyGlower() защищенный Метод

protected TryToDestroyGlower ( ) : void
Результат void

UpdateGlowerAccordingToGrowth() публичный Метод

Update the glower according to the plant growth, cryostatis state and snow depth.
public UpdateGlowerAccordingToGrowth ( ) : void
Результат void

Описание свойств

cluster публичное свойство

public Cluster,CaveworldFlora cluster
Результат Cluster

glower публичное свойство

public Thing glower
Результат Thing