Show / Hide Table of Contents

Class WorldLayerPusher<TIntermediateDescription>

Modifies the world to reflect the state of the world layer simulation, e.g. spawns and kills animals to make the population match.

Inheritance
System.Object
WorldLayerPusher<TIntermediateDescription>
BiomePusher
PlantGrower
PlantSpawner
Implements
IWorldLayerPusher
IWorldLayerRelationship
Namespace: Eco.Simulation.WorldLayers
Assembly: Eco.Simulation.dll
Syntax
public abstract class WorldLayerPusher<TIntermediateDescription> : Object, IWorldLayerPusher, IWorldLayerRelationship
Type Parameters
Name Description
TIntermediateDescription

Constructors

WorldLayerPusher()

Declaration
protected WorldLayerPusher()

Properties

Dependencies

Declaration
public WorldLayer[] Dependencies { get; }
Property Value
Type Description
WorldLayer[]

DependencyLayerNames

Layer names which should be used to populate layerValues for Apply(WorldArea, Single[], WorldLayerNeighborInfo[], Int32).

Declaration
public abstract string[] DependencyLayerNames { get; }
Property Value
Type Description
System.String[]

DescribeGeneral

Declaration
public abstract string DescribeGeneral { get; }
Property Value
Type Description
System.String

Methods

Apply(WorldArea, Single[], WorldLayerNeighborInfo[], Int32)

Declaration
public abstract void Apply(WorldArea area, float[] layerValues, WorldLayerNeighborInfo[] neighborValues, int length)
Parameters
Type Name Description
WorldArea area
System.Single[] layerValues
WorldLayerNeighborInfo[] neighborValues
System.Int32 length

DescribeAggregated(IEnumerable<TIntermediateDescription>)

Declaration
protected abstract string DescribeAggregated(IEnumerable<TIntermediateDescription> intermediateDescriptions)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<TIntermediateDescription> intermediateDescriptions
Returns
Type Description
System.String

DescribeParameterized(WorldArea)

Declaration
public string DescribeParameterized(WorldArea area)
Parameters
Type Name Description
WorldArea area
Returns
Type Description
System.String

DescribeSpecific(WorldArea, Single[], WorldLayerNeighborInfo[])

Declaration
protected abstract TIntermediateDescription DescribeSpecific(WorldArea area, float[] layerValues, WorldLayerNeighborInfo[] neighborValues)
Parameters
Type Name Description
WorldArea area
System.Single[] layerValues
WorldLayerNeighborInfo[] neighborValues
Returns
Type Description
TIntermediateDescription

Implements

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