diff options
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 }, |
