Show / Hide Table of Contents

Class Capture<T>

Encompasses a single piece of data generated at a certian point in time during a recording. Meant to be immutable.

Inheritance
System.Object
Capture<T>
CustomEventCapture
IntCapture
UnityLifeCycleEventCapture
VectorCapture
Implements
ICapture
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Recolude.Core
Assembly: Recolude.Core.dll
Syntax
public abstract class Capture<T> : ICapture
Type Parameters
Name Description
T

Constructors

Capture(Single, T)

Declaration
public Capture(float time, T value)
Parameters
Type Name Description
System.Single time
T value

Properties

Time

The time the event was captured in the recording.

Declaration
public float Time { get; }
Property Value
Type Description
System.Single

Value

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

Methods

SetTime(Single)

Builds a new capture object that has a modified capture time. The original capture object is left unchanged.

Declaration
public abstract ICapture SetTime(float time)
Parameters
Type Name Description
System.Single time
Returns
Type Description
ICapture

A new capture object with the capture time set to the value passed in.

ToCSV()

Builds a string that represents a single row in a csv file that contains this object's data.

Declaration
public abstract string ToCSV()
Returns
Type Description
System.String

A row of csv data as a string.

ToJSON()

Builds a JSON string that represents the Capture.

Declaration
public abstract string ToJSON()
Returns
Type Description
System.String

A JSON string.

Implements

ICapture

Extension Methods

ICaptureExtensions.FallsWithin(ICapture, Single, Single)
ICaptureExtensions.FallsWithin(ICapture, Vector2)
Back to top Generated by DocFX