aboutsummaryrefslogtreecommitdiffstats
path: root/src/Types.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-01-24 08:42:34 +0300
committerRblSb <msrblsb@gmail.com>2025-01-24 19:37:02 +0300
commit6ead98595d71afba9d11d3300756b46f18fd6bda (patch)
treed087094f9a124a31adad290a5040a8f7d4902186 /src/Types.hx
parenta843ae530b07b92fc7341754b4722cdcb8dfb831 (diff)
Add server pause when leader disconnects
Diffstat (limited to 'src/Types.hx')
-rw-r--r--src/Types.hx13
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
},
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage