Struct ClockState
JSON-safe snapshot of one ScyllaClock instance. Captured by CaptureState() and restored by RestoreState(MasterTimeState).
Inherited Members
Namespace: Scylla.Core.Time
Assembly: ScyllaCore.dll
Syntax
[Serializable]
public struct ClockState
Remarks
All fields are JSON-safe primitives; the ActiveModifiers array carries snapshots of the per-clock modifier stack. Scheduled callbacks are NOT captured because Action instances cannot be serialized portably; consumers that need persistent scheduled events should re-register them after restore via the high-level scheduling API.
ClockID is the lookup key on restore. If the clock is no longer
registered when RestoreState runs, the entry is logged as a warning and
skipped without aborting the rest of the restore.
Fields
ActiveModifiers
Snapshots of every modifier active in the clock's stack at capture time.
Declaration
public TimeScaleModifierState[] ActiveModifiers
Field Value
| Type | Description |
|---|---|
| TimeScaleModifierState[] |
ClockID
Identifier of the clock this state belongs to.
Declaration
public string ClockID
Field Value
| Type | Description |
|---|---|
| string |
CurrentTickMilliseconds
Canonical millisecond tick value at capture time.
Declaration
public long CurrentTickMilliseconds
Field Value
| Type | Description |
|---|---|
| long |
IsPaused
Whether the clock was independently paused at capture time.
Declaration
public bool IsPaused
Field Value
| Type | Description |
|---|---|
| bool |
SpeedMultiplier
Speed multiplier on top of the clock's base tick rate.
Declaration
public float SpeedMultiplier
Field Value
| Type | Description |
|---|---|
| float |