diff options
| author | RblSb <msrblsb@gmail.com> | 2025-01-24 08:42:34 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-01-24 19:37:02 +0300 |
| commit | 6ead98595d71afba9d11d3300756b46f18fd6bda (patch) | |
| tree | d087094f9a124a31adad290a5040a8f7d4902186 /src/Types.hx | |
| parent | a843ae530b07b92fc7341754b4722cdcb8dfb831 (diff) | |
Add server pause when leader disconnects
Diffstat (limited to 'src/Types.hx')
| -rw-r--r-- | src/Types.hx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Types.hx b/src/Types.hx index 3d25fda..fdb3ba9 100644 --- a/src/Types.hx +++ b/src/Types.hx @@ -142,6 +142,13 @@ typedef FlashbackItem = { time:Float } +typedef GetTimeEvent = { + time:Float, + ?paused:Bool, + ?pausedByServer:Bool, + ?rate:Float +} + typedef WsEvent = { type:WsEventType, ?connected:{ @@ -201,11 +208,7 @@ typedef WsEvent = { ?play:{ time:Float }, - ?getTime:{ - time:Float, - ?paused:Bool, - ?rate:Float - }, + ?getTime:GetTimeEvent, ?setTime:{ time:Float }, |
