Show / Hide Table of Contents

Namespace Eco.Simulation.WorldLayers

Classes

AccumulatingPuller

A puller that accumulates layer modifications that occur between worldlayer ticks, typically as a result of WorldObject and player actions. Use it as a proxy for writing directly to a layer.

DebrisCache

Caches information about tree debris presence in the world. Used in plant and trampling simulation.

InitialLayerSet

LayerInteractionContext

LayerNames

NewWorldLayerSync

PusherContext

SimStats

TailingsCache

TailingsContainer

WorldLayerInteraction<TIntermediateDescription>

Models an effect that a set of layers have on another layer, e.g. animals eating plants for food kills plants.

WorldLayerManager

WorldLayerManager.LayerInitOperation

WorldLayerNeighborInfo

This struct provides on demand values for all neighbor cells around the Eco.Simulation.WorldLayers.WorldLayerNeighborInfo.cell (3x3 matrix with the cell in the center). It may be used by interactions which requires neighbors info (i.e. for values spreading).

WorldLayerPuller<TIntermediateDescription>

Modifies a world layer based on the state of the world and events since the last tick, e.g. adjusts animal population based on player hunting activity.

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.

WorldLayerSync

WorldLayerSync.TickSample

WorldLayerUtils

Contains a set of utility methods for WorldLayers.

Interfaces

AccumulatingPuller.IAccumulatingPullerDocumenter

IDependencyLayer

IPostWorldGenWorldLayerPusher

Interface for pushers who aware about post world gen (after all interactions initialized, but before Tick). If pusher may modify layer values (like Plant Spawner which checks actually available spawn blocks and also ensures to not spawn plants over capacity) then you may need to have this callback so interaction during Tick phase will use adjusted values (i.e. for consumed capacity calculation).

IStartupWorldLayerPuller

Interface extending IWorldLayerPuller with ApplyStartupValue which pulls startup value based on current world state.

IWorldLayerInteraction

IWorldLayerPuller

IWorldLayerPusher

IWorldLayerRelationship

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