Show / Hide Table of Contents

Class AnimalsManager

Inheritance
System.Object
AnimalsManager
Implements
ISimplePluginData
IStorage
ISerializable
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Simulation.Animals
Assembly: Eco.Simulation.dll
Syntax
public class AnimalsManager : Singleton<AnimalsManager>, ISimplePluginData, IStorage, ISerializable, IController, IViewController, IHasUniversalID, INotifyPropertyChanged

Constructors

AnimalsManager()

Declaration
public AnimalsManager()

Fields

AnimalPopulationReducedEvent

Event triggered when animal population is reduced due to hunting. Arguments: (animal, hunter, worldPos, oldPopulation, newPopulation)

Declaration
public static readonly ThreadSafeAction<Animal, INetObject, Vector2i, float, float> AnimalPopulationReducedEvent
Field Value
Type Description
ThreadSafeAction<Animal, INetObject, Vector2i, System.Single, System.Single>

Animals

Declaration
public ThreadSafeList<Animal> Animals
Field Value
Type Description
ThreadSafeList<Animal>

HerdManager

Declaration
public HerdManager HerdManager
Field Value
Type Description
HerdManager

SpeciesRecoveredEvent

Declaration
public static ThreadSafeAction<AnimalSpecies> SpeciesRecoveredEvent
Field Value
Type Description
ThreadSafeAction<AnimalSpecies>

SpeciesWentExtinctEvent

Declaration
public static ThreadSafeAction<AnimalSpecies, INetObject> SpeciesWentExtinctEvent
Field Value
Type Description
ThreadSafeAction<AnimalSpecies, INetObject>

Utils

Declaration
public IAnimalUtils Utils
Field Value
Type Description
IAnimalUtils

Properties

AllowSpawn

Declaration
public bool AllowSpawn { get; set; }
Property Value
Type Description
System.Boolean

AlwaysAttack_Debug

Declaration
public bool AlwaysAttack_Debug { get; set; }
Property Value
Type Description
System.Boolean

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

DebugAll

Declaration
public bool DebugAll { get; set; }
Property Value
Type Description
System.Boolean

ObserverManager

Declaration
public ObserverManager ObserverManager { get; }
Property Value
Type Description
ObserverManager

StorageHandle

Declaration
public IPersistent StorageHandle { get; set; }
Property Value
Type Description
IPersistent

Methods

AnimalAdded(Animal)

Declaration
public void AnimalAdded(Animal animal)
Parameters
Type Name Description
Animal animal

AnimalDestroyed(Animal)

Declaration
public void AnimalDestroyed(Animal animal)
Parameters
Type Name Description
Animal animal

GetCategory()

Declaration
public string GetCategory()
Returns
Type Description
System.String

GetDisplayText()

Gets state info for plugin manager

Declaration
public string GetDisplayText()
Returns
Type Description
System.String

GetStatus()

Declaration
public string GetStatus()
Returns
Type Description
System.String

Initialize(IAnimalUtils)

Declaration
public void Initialize(IAnimalUtils utils)
Parameters
Type Name Description
IAnimalUtils utils

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

Update()

Declaration
public void Update()

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

ISimplePluginData
IStorage
ISerializable
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾