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
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
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
Pull()
Declaration
Push()
- Spawn animals in patches which don't have enough.
- Damage animals in patches which have too many.
Declaration
SafePopMapEntry(Vector2i)
Declaration
public List<Animal> SafePopMapEntry(Vector2i v)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<Animal> |
|
TickSelf()
Declaration
protected override void TickSelf()
Overrides
ToString(Vector2i)
Declaration
public override string ToString(Vector2i layerPos)
Parameters
Returns
Type |
Description |
System.String |
|
Overrides
Implements