aboutsummaryrefslogtreecommitdiffstats
path: root/src/Types.hx
diff options
context:
space:
mode:
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