Struct ScriptAction
- Namespace
- Ofs
- Assembly
- Ofs.Api.dll
A point in a funscript: a timestamp (At, seconds) and a position
(Pos, 0–100). Value type with value equality, deconstruction and
with-expressions. The sequential layout keeps it blittable so it can cross
the native ABI without marshaling.
public readonly record struct ScriptAction : IComparable<ScriptAction>, IEquatable<ScriptAction>
- Implements
Constructors
ScriptAction(double, int)
A point in a funscript: a timestamp (At, seconds) and a position
(Pos, 0–100). Value type with value equality, deconstruction and
with-expressions. The sequential layout keeps it blittable so it can cross
the native ABI without marshaling.
public ScriptAction(double At, int Pos)
Parameters
Properties
At
public double At { get; init; }
Property Value
Pos
public int Pos { get; init; }
Property Value
Methods
CompareTo(ScriptAction)
Orders actions by At (time) only, so a list stays sorted chronologically.
public int CompareTo(ScriptAction other)
Parameters
otherScriptAction
Returns
Operators
operator >(ScriptAction, ScriptAction)
public static bool operator >(ScriptAction left, ScriptAction right)
Parameters
leftScriptActionrightScriptAction
Returns
operator >=(ScriptAction, ScriptAction)
public static bool operator >=(ScriptAction left, ScriptAction right)
Parameters
leftScriptActionrightScriptAction
Returns
operator <(ScriptAction, ScriptAction)
public static bool operator <(ScriptAction left, ScriptAction right)
Parameters
leftScriptActionrightScriptAction
Returns
operator <=(ScriptAction, ScriptAction)
public static bool operator <=(ScriptAction left, ScriptAction right)
Parameters
leftScriptActionrightScriptAction