C# 클래스 CaveworldFlora.ClusterPlant

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

공개 프로퍼티들

프로퍼티 타입 설명
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