Class AnimalsManager
Inheritance
System.Object
AnimalsManager
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Simulation.dll
Syntax
public class AnimalsManager : Singleton<AnimalsManager>, ISimplePluginData, IStorage, ISerializable, IController, IViewController, IHasUniversalID, INotifyPropertyChanged
Constructors
AnimalsManager()
Declaration
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
Animals
Declaration
public ThreadSafeList<Animal> Animals
Field Value
HerdManager
Declaration
public HerdManager HerdManager
Field Value
SpeciesRecoveredEvent
Declaration
public static ThreadSafeAction<AnimalSpecies> SpeciesRecoveredEvent
Field Value
SpeciesWentExtinctEvent
Declaration
public static ThreadSafeAction<AnimalSpecies, INetObject> SpeciesWentExtinctEvent
Field Value
Utils
Declaration
public IAnimalUtils Utils
Field Value
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
StorageHandle
Declaration
public IPersistent StorageHandle { get; set; }
Property Value
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
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Update()
Declaration
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged