C# Class CaveworldFlora.Cluster

Cluster class.
Inheritance: Thing
显示文件 Open project: Rikiki123456789/Rimworld Class Usage Examples

Public Properties

Property Type Description
actualSize int
desiredSize int
plantDef ThingDef_ClusterPlant
symbiosisCluster Cluster

Public Methods

Method Description
Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void
ExposeData ( ) : void
GetExclusivityRadius ( ThingDef_ClusterPlant plantDef, int clusterSize ) : float
GetMaxExclusivityRadius ( ThingDef_ClusterPlant plantDef ) : float
Initialize ( ThingDef_ClusterPlant plantDef, int desiredSize ) : void
NotifyPlantAdded ( ) : void
NotifyPlantRemoved ( ) : void
NotifySymbiosisClusterAdded ( Cluster symbiosisCluster ) : void
NotifySymbiosisClusterRemoved ( Cluster symbiosisCluster ) : void
SpawnNewClusterAt ( IntVec3 spawnCell, ThingDef_ClusterPlant plantDef, int desiredSize ) : ClusterPlant

Protected Methods

Method Description
UpdateClusterPosition ( ) : void

Method Details

Destroy() public method

public Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void
mode DestroyMode
return void

ExposeData() public method

public ExposeData ( ) : void
return void

GetExclusivityRadius() public static method

public static GetExclusivityRadius ( ThingDef_ClusterPlant plantDef, int clusterSize ) : float
plantDef ThingDef_ClusterPlant
clusterSize int
return float

GetMaxExclusivityRadius() public static method

public static GetMaxExclusivityRadius ( ThingDef_ClusterPlant plantDef ) : float
plantDef ThingDef_ClusterPlant
return float

Initialize() public method

public Initialize ( ThingDef_ClusterPlant plantDef, int desiredSize ) : void
plantDef ThingDef_ClusterPlant
desiredSize int
return void

NotifyPlantAdded() public method

public NotifyPlantAdded ( ) : void
return void

NotifyPlantRemoved() public method

public NotifyPlantRemoved ( ) : void
return void

NotifySymbiosisClusterAdded() public method

public NotifySymbiosisClusterAdded ( Cluster symbiosisCluster ) : void
symbiosisCluster Cluster
return void

NotifySymbiosisClusterRemoved() public method

public NotifySymbiosisClusterRemoved ( Cluster symbiosisCluster ) : void
symbiosisCluster Cluster
return void

SpawnNewClusterAt() public static method

public static SpawnNewClusterAt ( IntVec3 spawnCell, ThingDef_ClusterPlant plantDef, int desiredSize ) : ClusterPlant
spawnCell IntVec3
plantDef ThingDef_ClusterPlant
desiredSize int
return ClusterPlant

UpdateClusterPosition() protected method

protected UpdateClusterPosition ( ) : void
return void

Property Details

actualSize public_oe property

public int actualSize
return int

desiredSize public_oe property

public int desiredSize
return int

plantDef public_oe property

public ThingDef_ClusterPlant plantDef
return ThingDef_ClusterPlant

symbiosisCluster public_oe property

public Cluster symbiosisCluster
return Cluster