Show / Hide Table of Contents

Class Simulation

Inheritance
System.Object
Simulation
AnimalSim
Namespace: Eco.Simulation
Assembly: Eco.Simulation.dll
Syntax
public abstract class Simulation : Object

Constructors

Simulation()

Declaration
protected Simulation()

Properties

All

Declaration
public IEnumerable<ITickable> All { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ITickable>

NumTickables

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

Methods

AddTickable(ITickable)

Declaration
public virtual void AddTickable(ITickable element)
Parameters
Type Name Description
ITickable element

Clear()

Declaration
public virtual void Clear()

GetNextSmallestTickSeconds()

Declaration
public double GetNextSmallestTickSeconds()
Returns
Type Description
System.Double

MarkAllDirty()

Declaration
public virtual void MarkAllDirty()

QueueElementUpdate(ITickable)

Queue an update to an element. Updates are applied on TickAll(Int32) or GetNextSmallestTickSeconds()

Declaration
public void QueueElementUpdate(ITickable element)
Parameters
Type Name Description
ITickable element

RemoveTickable(ITickable)

Declaration
public virtual void RemoveTickable(ITickable element)
Parameters
Type Name Description
ITickable element

TickAll(Int32)

Declaration
public virtual int TickAll(int maxTicksToRun = 10)
Parameters
Type Name Description
System.Int32 maxTicksToRun
Returns
Type Description
System.Int32
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾