Abacus
v0.1.0-alpha
Playtesting tools for Unity
|
Abstract base class for all Metric types; Create a new Metric class by inheriting from this More...
Public Member Functions | |
void | AttachVariable (Component component, string variableName) |
Attach a variable to the metric to be recorded More... | |
object | Dump () |
Returns the metric's data as an object to be serialized More... | |
string | GetVariableName () |
The name of the variable that this Metric records More... | |
Type | GetValueType () |
The type that this Metric records More... | |
abstract T | GetValue () |
T | GetLastRecordedValue () |
The last value recorded by this metric More... | |
void | Record () |
Records the current value of the attached variable More... | |
void | SetSource (Component component) |
Sets the component that the metric retrieves a field or property from More... | |
void | SetTimeStep (float timeStep) |
Sets the time step for the recorder More... | |
void | Enable () |
Enables the metric recorder More... | |
void | Disable () |
Disables the metric recorder More... | |
Public Attributes | |
float | TimeStep => _timeStep |
The time step duration of the metric recorder More... | |
bool | IsEnabled => _isEnabled |
Whether the metric recorder is enabled More... | |
Properties | |
abstract bool | RetrievedMember [get] |
Whether the metric recorder has retrieved the field/property it will record the value of More... | |
List< DataPoint< T > > | History = new List<DataPoint<T>>() [get] |
The history of recorded values for this metric More... | |
![]() | |
float | TimeStep [get] |
bool | IsEnabled [get] |
Abstract base class for all Metric types; Create a new Metric class by inheriting from this
T | The data type for the metric to hold |
void Abacus.Internal.Metric< T >.AttachVariable | ( | Component | component, |
string | variableName | ||
) |
Attach a variable to the metric to be recorded
component | The component the variable is a member of |
variableName | The variable name as a string |
void Abacus.Internal.Metric< T >.Disable | ( | ) |
Disables the metric recorder
Implements Abacus.Internal.IRecordable.
object Abacus.Internal.Metric< T >.Dump | ( | ) |
Returns the metric's data as an object to be serialized
Implements Abacus.Internal.IRecordable.
void Abacus.Internal.Metric< T >.Enable | ( | ) |
Enables the metric recorder
Implements Abacus.Internal.IRecordable.
T Abacus.Internal.Metric< T >.GetLastRecordedValue | ( | ) |
The last value recorded by this metric
Type Abacus.Internal.Metric< T >.GetValueType | ( | ) |
The type that this Metric records
Implements Abacus.Internal.IRecordable.
string Abacus.Internal.Metric< T >.GetVariableName | ( | ) |
The name of the variable that this Metric records
Implements Abacus.Internal.IRecordable.
void Abacus.Internal.Metric< T >.Record | ( | ) |
Records the current value of the attached variable
Implements Abacus.Internal.IRecordable.
void Abacus.Internal.Metric< T >.SetSource | ( | Component | component | ) |
Sets the component that the metric retrieves a field or property from
component |
Implements Abacus.Internal.IRecordable.
void Abacus.Internal.Metric< T >.SetTimeStep | ( | float | timeStep | ) |
Sets the time step for the recorder
timeStep | The new time step duration (s) |
bool Abacus.Internal.Metric< T >.IsEnabled => _isEnabled |
Whether the metric recorder is enabled
float Abacus.Internal.Metric< T >.TimeStep => _timeStep |
The time step duration of the metric recorder
|
get |
The history of recorded values for this metric
|
get |
Whether the metric recorder has retrieved the field/property it will record the value of