Show / Hide Table of Contents

Class AnimalLayer

Inheritance
System.Object
WorldLayer
SpeciesLayer
AnimalLayer
Implements
IStorage
ISerializable
IController
IViewController
IHasUniversalID
IWorldLayerView
IWorldLayerLastTickView
IHeatMapOverlay
IOverlayWithDescribableUnits
IMinimapOption
IMinimapCategorizedOption
ISpeciesLayer
Inherited Members
SpeciesLayer.AddedOrganismsToWorld
SpeciesLayer.RemovedFromWorld
SpeciesLayer.NoRoomForPlants
SpeciesLayer.HarvestedByPlayers
SpeciesLayer.InvasiveSpeciesKilled
SpeciesLayer.GetSpeciesName()
SpeciesLayer.Species
SpeciesLayer.SpeciesSettings
WorldLayer.Epsilon
WorldLayer.RoundedTotal
WorldLayer.ActualTotal
WorldLayer.RoundedResolutionAdjustedTotal
WorldLayer.PrevEntries
WorldLayer.TimeSpentTicking
WorldLayer.Width
WorldLayer.Height
WorldLayer.NumCells
WorldLayer.ToString()
WorldLayer.Modify()
WorldLayer.Init()
WorldLayer.Init(Func<Vector2i, Single>)
WorldLayer.NoiseInit(Single, Single, Single, Func<Vector2i, Single, Single>)
WorldLayer.Tick()
WorldLayer.RawEntry(Vector2i)
WorldLayer.EntryWorldPos(Int32, Int32)
WorldLayer.EntryWorldPos(Vector2i)
WorldLayer.SetAtWorldPos(Vector2i, Single)
WorldLayer.SafeEntry(Int32, Int32)
WorldLayer.SafeEntry(Vector2i)
WorldLayer.WrapPos(Vector2i)
WorldLayer.PercentToRawPos(Vector2)
WorldLayer.PercentToWorldPos(Vector2)
WorldLayer.WorldPosToLayerPos(Vector2i)
WorldLayer.LayerPosToWorldPos(Vector2)
WorldLayer.LayerPosToWorldArea(Vector2i)
WorldLayer.FuncAtWorldPos(Vector2i, Func<Vector2i, Single, Single>)
WorldLayer.TransformInArea(WorldArea, Func<Single, Single>)
WorldLayer.TranslateEntry(WorldLayer, Vector2i)
WorldLayer.GetValue(LayerPosition)
WorldLayer.TranslateEntryToAmount(WorldLayer, Vector2i)
WorldLayer.DoTick()
WorldLayer.ForRadius(Vector2i, Single, Func<Vector2i, Single, Single>)
WorldLayer.ApplyRadius(Vector2i, Single, Func<Vector2i, Single, Single>)
WorldLayer.Patch(Vector2i)
WorldLayer.FillLayerWithSummedPatchValues(Array2D<Single>)
WorldLayer.SetMax(Array2D<Single>)
WorldLayer.SetMax(Array2D<Boolean>)
WorldLayer.ForEach(Action<Vector2i, Single>)
WorldLayer.Transform(Func<Single, Single>)
WorldLayer.Clear()
WorldLayer.PostLoad()
WorldLayer.RecordPrevious()
WorldLayer.MarkDirty()
WorldLayer.PullStartupLayer(IStartupWorldLayerPuller)
WorldLayer.PullLayer(IWorldLayerPuller)
WorldLayer.PullLayerNonExclusive(IWorldLayerPuller)
WorldLayer.ForEachCell(Int32, WorldLayer[], Action<Vector2i, WorldArea, Single[], WorldLayerNeighborInfo[], Int32>)
WorldLayer.PushLayers(IWorldLayerPusher)
WorldLayer.ApplyInteraction(IWorldLayerInteraction, IWorldLayerLastTickView[])
WorldLayer.AverageOverBoundaryAlignedWorldPos(Vector2i)
WorldLayer.AverageOverBoundaryAlignedWorldArea(WorldArea)
WorldLayer.AverageOverBoundaryAlignedWorldAreaLastTick(WorldArea)
WorldLayer.SumAndCountOverBoundaryAlignedWorldArea(WorldArea, Boolean, Single, Int32)
WorldLayer.LayerPosToWorldArea(Vector2i, Int32)
WorldLayer.ForEachCell(Int32, Action<Vector2i, WorldArea>)
WorldLayer.InitInteraction(IWorldLayerInteraction, WorldLayer[])
WorldLayer.ValStringHtml(Single, Boolean)
WorldLayer.ValStringTooltip(Single, Boolean)
WorldLayer.ActualResolutionAdjustedTotal
WorldLayer.Map
WorldLayer.Name
WorldLayer.MarkedUpName
WorldLayer.FolderStructure
WorldLayer.Priority
WorldLayer.IsOnByDefault
WorldLayer.IsVisible
WorldLayer.OverlayName
WorldLayer.DisplayName
WorldLayer.UnitDescription
WorldLayer.Settings
WorldLayer.LastModifiedTime
WorldLayer.DirtyRawData
WorldLayer.StorageHandle
WorldLayer.PushPullActive
WorldLayer.PostTick
WorldLayer.CellArea
WorldLayer.Size
WorldLayer.CalcSize
WorldLayer.Item[Int32, Int32]
WorldLayer.Item[Vector2i]
WorldLayer.Values
WorldLayer.OutputColor
WorldLayer.ControllerID
WorldLayer.Range
Namespace: Eco.Simulation.WorldLayers.Layers
Assembly: Eco.Simulation.dll
Syntax
public sealed class AnimalLayer : SpeciesLayer, IStorage, ISerializable, IController, IViewController, IHasUniversalID, IWorldLayerView, IWorldLayerLastTickView, IHeatMapOverlay, IOverlayWithDescribableUnits, IMinimapOption, IMinimapCategorizedOption, ISpeciesLayer

Constructors

AnimalLayer()

Declaration
public AnimalLayer()

Fields

StopSpawn

Declaration
public static bool StopSpawn
Field Value
Type Description
System.Boolean

Properties

SettingsType

Declaration
public override Type SettingsType { get; }
Property Value
Type Description
System.Type
Overrides
SpeciesLayer.SettingsType

Methods

BackwardsCompatibilityCheck()

Checks if layer dimensions was changed and re-generated layer in this case.

Declaration
public override void BackwardsCompatibilityCheck()
Overrides
WorldLayer.BackwardsCompatibilityCheck()

InitSelf()

Set initial layer values.

Declaration
protected override void InitSelf()
Overrides
WorldLayer.InitSelf()

MigrateVersion()

Declaration
public override bool MigrateVersion()
Returns
Type Description
System.Boolean
Overrides
WorldLayer.MigrateVersion()

OnServerStart()

Callback to be invoked once when server started while InitSelf() only called once when AnimalLayer created.

Declaration
public void OnServerStart()

PostLoadSelf()

Declaration
protected override void PostLoadSelf()
Overrides
SpeciesLayer.PostLoadSelf()

Pull()

Declaration
public void Pull()

Push()

  1. Spawn animals in patches which don't have enough.
  2. Damage animals in patches which have too many.
Declaration
public void Push()

SafePopMapEntry(Vector2i)

Declaration
public List<Animal> SafePopMapEntry(Vector2i v)
Parameters
Type Name Description
Vector2i v
Returns
Type Description
System.Collections.Generic.List<Animal>

TickSelf()

Declaration
protected override void TickSelf()
Overrides
WorldLayer.TickSelf()

ToString(Vector2i)

Declaration
public override string ToString(Vector2i layerPos)
Parameters
Type Name Description
Vector2i layerPos
Returns
Type Description
System.String
Overrides
WorldLayer.ToString(Vector2i)

Implements

IStorage
ISerializable
IController
IViewController
IHasUniversalID
IWorldLayerView
IWorldLayerLastTickView
IHeatMapOverlay
IOverlayWithDescribableUnits
IMinimapOption
IMinimapCategorizedOption
ISpeciesLayer
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾