Show / Hide Table of Contents

Interface 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).

Inherited Members
IWorldLayerPusher.Apply(WorldArea, Single[], WorldLayerNeighborInfo[], Int32)
IWorldLayerPusher.VoxelsPerEntry
IWorldLayerPusher.DependencyLayerNames
IWorldLayerPusher.Dependencies
IWorldLayerRelationship.DescribeParameterized(WorldArea)
IWorldLayerRelationship.DescribeGeneral
Namespace: Eco.Simulation.WorldLayers
Assembly: Eco.Simulation.dll
Syntax
public interface IPostWorldGenWorldLayerPusher : IWorldLayerPusher, IWorldLayerRelationship

Methods

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

Method which invoked after all interaction initialized, but before Tick() on PostWorldGen stage.

Declaration
void PostWorldGenPush(WorldArea area, float[] dependencyValues, WorldLayerNeighborInfo[] neighborValues, int length)
Parameters
Type Name Description
WorldArea area
System.Single[] dependencyValues
WorldLayerNeighborInfo[] neighborValues
System.Int32 length
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾