C# Class CaveworldFlora.ClusterPlant_DevilTongue

Inheritance: ClusterPlant
Datei anzeigen Open project: Rikiki123456789/Rimworld

Public Properties

Property Type Description
flowerClosingRemainingTicks int
flowerMatrix UnityEngine.Matrix4x4
flowerOpeningTicks int
flowerScale Vector3
flowerState FlowerState
flowerTexture UnityEngine.Material
nextLongTick int
nextNearbyPawnCheckTick int

Public Methods

Method Description
Draw ( ) : void
ExposeData ( ) : void

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

PlantCollected ( ) : void
SpawnSetup ( ) : void
Tick ( ) : void

Main function: - look for nearby pawn: if any is found, close flower and glower. - when pawn is away, re-open flower after a delay.

Protected Methods

Method Description
CloseFlower ( ) : void
IsPawnNearby ( ) : bool
LookForNearbyPawnWhenClosed ( ) : void
LookForNearbyPawnWhenOpened ( ) : void
OpenFlower ( ) : void
TransitionToClosed ( ) : void
TransitionToClosing ( ) : void
TransitionToOpened ( ) : void
TransitionToOpening ( ) : void

Method Details

CloseFlower() protected method

protected CloseFlower ( ) : void
return void

Draw() public method

public Draw ( ) : void
return void

ExposeData() public method

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

IsPawnNearby() protected method

protected IsPawnNearby ( ) : bool
return bool

LookForNearbyPawnWhenClosed() protected method

protected LookForNearbyPawnWhenClosed ( ) : void
return void

LookForNearbyPawnWhenOpened() protected method

protected LookForNearbyPawnWhenOpened ( ) : void
return void

OpenFlower() protected method

protected OpenFlower ( ) : void
return void

PlantCollected() public method

public PlantCollected ( ) : void
return void

SpawnSetup() public method

public SpawnSetup ( ) : void
return void

Tick() public method

Main function: - look for nearby pawn: if any is found, close flower and glower. - when pawn is away, re-open flower after a delay.
public Tick ( ) : void
return void

TransitionToClosed() protected method

protected TransitionToClosed ( ) : void
return void

TransitionToClosing() protected method

protected TransitionToClosing ( ) : void
return void

TransitionToOpened() protected method

protected TransitionToOpened ( ) : void
return void

TransitionToOpening() protected method

protected TransitionToOpening ( ) : void
return void

Property Details

flowerClosingRemainingTicks public_oe property

public int flowerClosingRemainingTicks
return int

flowerMatrix public_oe property

public Matrix4x4,UnityEngine flowerMatrix
return UnityEngine.Matrix4x4

flowerOpeningTicks public_oe property

public int flowerOpeningTicks
return int

flowerScale public_oe property

public Vector3 flowerScale
return Vector3

flowerState public_oe property

public FlowerState flowerState
return FlowerState

flowerTexture public_oe static_oe property

public static Material,UnityEngine flowerTexture
return UnityEngine.Material

nextLongTick public_oe property

public int nextLongTick
return int

nextNearbyPawnCheckTick public_oe property

public int nextNearbyPawnCheckTick
return int