Property | Type | Description | |
---|---|---|---|
cluster | |||
glower | Thing |
Method | Description | |
---|---|---|
CanTerrainSupportPlantAt ( |
||
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 ( |
||
IsLightConditionOkAt ( |
||
IsNaturalRoughRockAt ( IntVec3 position ) : bool | ||
IsNearNaturalRockBlock ( IntVec3 position ) : bool | ||
IsTemperatureConditionOkAt ( |
||
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.
|
Method | Description | |
---|---|---|
TryToDestroyGlower ( ) : void |
public static CanTerrainSupportPlantAt ( |
||
plantDef | ||
position | IntVec3 | |
return | bool |
public Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void | ||
mode | DestroyMode | |
return | void |
public static IsFertilityConditionOkAt ( |
||
plantDef | ||
position | IntVec3 | |
return | bool |
public static IsLightConditionOkAt ( |
||
plantDef | ||
position | IntVec3 | |
return | bool |
public static IsNaturalRoughRockAt ( IntVec3 position ) : bool | ||
position | IntVec3 | |
return | bool |
public static IsNearNaturalRockBlock ( IntVec3 position ) : bool | ||
position | IntVec3 | |
return | bool |
public static IsTemperatureConditionOkAt ( |
||
plantDef | ||
position | IntVec3 | |
return | bool |
public UpdateGlowerAccordingToGrowth ( ) : void | ||
return | void |