Struct PickRecord
Records a single pick event produced by a ProbabilityList<T>.
Inherited Members
Namespace: Scylla.Core.Util.Random
Assembly: ScyllaCore.dll
Syntax
public readonly struct PickRecord
Remarks
Declared as a readonly struct so that instances can be stored in a
ScyllaRingBuffer<T> without heap allocation. The struct carries
only the minimal information needed for repeat prevention and history inspection.
Constructors
PickRecord(int, float)
Initializes a new PickRecord with an explicit index and timestamp.
Declaration
public PickRecord(int index, float timestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the picked entry within its ProbabilityList<T>. |
| float | timestamp | The timestamp to associate with this pick event, in seconds since application start. |
Fields
Index
Zero-based index of the picked ProbabilityEntry<T> within its ProbabilityList<T>.
Declaration
public readonly int Index
Field Value
| Type | Description |
|---|---|
| int |
Timestamp
The Unity game-time (seconds since application start) at the moment the pick
was recorded, as returned by UnityEngine.Time.time.
Declaration
public readonly float Timestamp
Field Value
| Type | Description |
|---|---|
| float |