C# Class CaveworldFlora.ClusterPlant

ClusterPlant class.
Inheritance: Plant
Afficher le fichier Open project: Rikiki123456789/Rimworld Class Usage Examples

Méthodes publiques

Свойство Type Description
cluster Cluster
glower Thing

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
TryToDestroyGlower ( ) : void

Method Details

CanTerrainSupportPlantAt() public static méthode

public static CanTerrainSupportPlantAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
Résultat bool

Destroy() public méthode

Destroy the plant and the associated glower if existing.
public Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void
mode DestroyMode
Résultat void

ExposeData() public méthode

Save and load internal state variables (stored in savegame data).
public ExposeData ( ) : void
Résultat void

GetInspectString() public méthode

Build the inspect string.
public GetInspectString ( ) : string
Résultat string

IsFertilityConditionOkAt() public static méthode

public static IsFertilityConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
Résultat bool

IsLightConditionOkAt() public static méthode

public static IsLightConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
Résultat bool

IsNaturalRoughRockAt() public static méthode

public static IsNaturalRoughRockAt ( IntVec3 position ) : bool
position IntVec3
Résultat bool

IsNearNaturalRockBlock() public static méthode

public static IsNearNaturalRockBlock ( IntVec3 position ) : bool
position IntVec3
Résultat bool

IsTemperatureConditionOkAt() public static méthode

public static IsTemperatureConditionOkAt ( ThingDef_ClusterPlant plantDef, IntVec3 position ) : bool
plantDef ThingDef_ClusterPlant
position IntVec3
Résultat bool

SpawnSetup() public méthode

Initialize instance variables.
public SpawnSetup ( ) : void
Résultat void

TickLong() public méthode

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
Résultat void

TryToDestroyGlower() protected méthode

protected TryToDestroyGlower ( ) : void
Résultat void

UpdateGlowerAccordingToGrowth() public méthode

Update the glower according to the plant growth, cryostatis state and snow depth.
public UpdateGlowerAccordingToGrowth ( ) : void
Résultat void

Property Details

cluster public_oe property

public Cluster,CaveworldFlora cluster
Résultat Cluster

glower public_oe property

public Thing glower
Résultat Thing