Class PlantPopulationConsumedCapacityInteraction
This interaction used by plant species to update consumed capacity in capacity layers. It inherits from ProportionalInteraction, but ensures only fully spawned plants consumed capacity to avoid situation with overcrowding and non-spawning from fractional plants.
Inheritance
System.Object
WorldLayerInteraction<System.Single>
PlantPopulationConsumedCapacityInteraction
Inherited Members
Namespace: Eco.Simulation.WorldLayers.LayerInteractions
Assembly: Eco.Simulation.dll
Syntax
public class PlantPopulationConsumedCapacityInteraction : ProportionalInteraction, IWorldLayerInteraction, IWorldLayerRelationship
Constructors
PlantPopulationConsumedCapacityInteraction(PlantSpecies, PlantSpecies.CapacityConstraint)
Declaration
public PlantPopulationConsumedCapacityInteraction(PlantSpecies species, PlantSpecies.CapacityConstraint capacityConstraint)
Parameters
Type | Name | Description |
---|---|---|
PlantSpecies | species | |
PlantSpecies.CapacityConstraint | capacityConstraint |
Methods
GetValue(Single[])
Trim to integer number of plants to avoid consume capacity for fractional plants which may prevent plants from grow and spawn.
Declaration
protected override float GetValue(float[] dependencyValues)
Parameters
Type | Name | Description |
---|---|---|
System.Single[] | dependencyValues |
Returns
Type | Description |
---|---|
System.Single |