Class AnimalLayer
Inheritance
System.Object
AnimalLayer
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
Fields
PopulationTickChangedEvent
Event triggered when animal layer population changes after a tick. Arguments: (layerName, populationBefore, populationAfter)
Declaration
public static ThreadSafeAction<string, float, float> PopulationTickChangedEvent
Field Value
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
TotalEntityCount
Declaration
public override int TotalEntityCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
Methods
BackwardsCompatibilityCheck()
Checks if layer dimensions was changed and re-generated layer in this case.
Declaration
public override void BackwardsCompatibilityCheck()
Overrides
InitSelf()
Set initial layer values.
Declaration
protected override void InitSelf()
Overrides
MigrateVersion()
Declaration
public override bool MigrateVersion()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
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
SafePopMapEntry(Vector2i)
Declaration
public List<Animal> SafePopMapEntry(Vector2i v)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.List<Animal> |
|
TickFinished()
Declaration
public override void TickFinished()
Overrides
TickSelf()
Declaration
protected override void TickSelf()
Overrides
ToString(Vector2i)
Declaration
public override string ToString(Vector2i layerPos)
Parameters
Returns
| Type |
Description |
| System.String |
|
Overrides
Implements