From 6ead98595d71afba9d11d3300756b46f18fd6bda Mon Sep 17 00:00:00 2001 From: RblSb Date: Fri, 24 Jan 2025 08:42:34 +0300 Subject: Add server pause when leader disconnects --- src/Types.hx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/Types.hx') 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 }, -- cgit v1.2.3