Show / Hide Table of Contents

Class AnimalSim

Inheritance
System.Object
Simulation
AnimalSim
Inherited Members
Simulation.QueueElementUpdate(ITickable)
Simulation.TickAll(Int32)
Simulation.GetNextSmallestTickSeconds()
Simulation.AddTickable(ITickable)
Simulation.RemoveTickable(ITickable)
Simulation.Clear()
Simulation.MarkAllDirty()
Simulation.NumTickables
Simulation.All
Namespace: Eco.Simulation
Assembly: Eco.Simulation.dll
Syntax
public class AnimalSim : Simulation

Constructors

AnimalSim()

Declaration
public AnimalSim()

Fields

AnimalPerfStats

Declaration
public AnimalPerfStats AnimalPerfStats
Field Value
Type Description
AnimalPerfStats

Properties

ObserverDetector

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

Methods

SpawnAnimal(AnimalSpecies, Vector3, Action<Animal>)

Spawn alive animal from species at pos. Optionally onCreate action may be provided which will be called before animal registered as tickable. It ensures animal fully initialized before first tick.

Declaration
public Animal SpawnAnimal(AnimalSpecies species, Vector3 pos, Action<Animal> onCreate = null)
Parameters
Type Name Description
AnimalSpecies species
System.Numerics.Vector3 pos
System.Action<Animal> onCreate
Returns
Type Description
Animal

SpawnCorpse(AnimalSpecies, Vector3)

Spawn animal's corpse from species at pos.

Declaration
public Animal SpawnCorpse(AnimalSpecies species, Vector3 pos)
Parameters
Type Name Description
AnimalSpecies species
System.Numerics.Vector3 pos
Returns
Type Description
Animal
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾