Show / Hide Table of Contents

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>
ProportionalInteraction
PlantPopulationConsumedCapacityInteraction
Implements
IWorldLayerInteraction
IWorldLayerRelationship
Inherited Members
ProportionalInteraction.Apply(Single, Single[], WorldLayerNeighborInfo[])
ProportionalInteraction.PostWorldgen(Single, Single[], WorldLayerNeighborInfo[])
ProportionalInteraction.DescribeSpecific(Single, Single[], WorldLayerNeighborInfo[])
ProportionalInteraction.DescribeAggregated(IEnumerable<Single>)
ProportionalInteraction.InputLayerName
ProportionalInteraction.TargetLayerName
ProportionalInteraction.ActiveOnWorldGen
ProportionalInteraction.ProportionEachTick
ProportionalInteraction.ProportionAtInitialization
ProportionalInteraction.DependencyLayerNames
ProportionalInteraction.WorldInitDependencyLayerNames
ProportionalInteraction.OutputLayerName
ProportionalInteraction.DescribeGeneral
WorldLayerInteraction<Single>.Verify(List<LocString>)
WorldLayerInteraction<Single>.DescribeParameterized(WorldArea)
WorldLayerInteraction<Single>.GetDependencyIndexByLayerName(String)
WorldLayerInteraction<Single>.ValueOf(String, Single[])
WorldLayerInteraction<Single>.PostWorldgenValueOf(String, Single[])
WorldLayerInteraction<Single>.ToString()
WorldLayerInteraction<Single>.RequiresNeighborhood
WorldLayerInteraction<Single>.Dependencies
WorldLayerInteraction<Single>.PostWorldgenDependencies
WorldLayerInteraction<Single>.OutputLayer
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
Overrides
ProportionalInteraction.GetValue(Single[])

Implements

IWorldLayerInteraction
IWorldLayerRelationship
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾