Enum TimeEvent
Identifies the type of time-state change that triggered a notification to registered ITimeListener objects.
Namespace: Scylla.Core.Time
Assembly: ScyllaCore.dll
Syntax
public enum TimeEvent
Remarks
ScyllaTime dispatches these events synchronously on the main thread by iterating its internal listener list immediately after the new state has been committed. Each value corresponds to a distinct public method or property change on ScyllaTime:
- Paused - dispatched at the end of Pause().
- Resumed - dispatched at the end of Resume().
- TimeScaleChanged - dispatched at the end of SetTimeScale(float) when the effective scale value actually changes.
Because dispatch is synchronous, any ScyllaTime property read inside OnTimeEvent(TimeEvent) already reflects the new state at the moment the callback fires.
Fields
| Name | Description |
|---|---|
| Paused | The game has been paused via Pause() or TogglePause(). |
| Resumed | The game has been resumed from a paused state via Resume() or TogglePause(). |
| TimeScaleChanged | The time scale has been changed via SetTimeScale(float), SetSlowMotion(float), SetFastForward(float), or SetNormalSpeed(). |