@quenty/timesyncservice 13.18.4-canary.559.9f38947.0 → 13.19.0-canary.559.b31717d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [13.19.0-canary.559.b31717d.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/timesyncservice@13.18.3...@quenty/timesyncservice@13.19.0-canary.559.b31717d.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/timesyncservice",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.19.0-canary.559.b31717d.0",
|
|
4
4
|
"description": "Quenty's TimeSyncService keeps time synchronized between all clients and the server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/baseobject": "10.8.
|
|
30
|
-
"@quenty/loader": "10.8.
|
|
31
|
-
"@quenty/maid": "3.4.
|
|
32
|
-
"@quenty/promise": "10.
|
|
33
|
-
"@quenty/remoting": "12.
|
|
34
|
-
"@quenty/rx": "13.
|
|
35
|
-
"@quenty/signal": "7.10.
|
|
36
|
-
"@quenty/table": "3.7.
|
|
37
|
-
"@quenty/valueobject": "13.
|
|
29
|
+
"@quenty/baseobject": "10.8.3",
|
|
30
|
+
"@quenty/loader": "10.8.3",
|
|
31
|
+
"@quenty/maid": "3.4.3",
|
|
32
|
+
"@quenty/promise": "10.11.0-canary.559.b31717d.0",
|
|
33
|
+
"@quenty/remoting": "12.19.0-canary.559.b31717d.0",
|
|
34
|
+
"@quenty/rx": "13.18.0-canary.559.b31717d.0",
|
|
35
|
+
"@quenty/signal": "7.10.3",
|
|
36
|
+
"@quenty/table": "3.7.4",
|
|
37
|
+
"@quenty/valueobject": "13.18.0-canary.559.b31717d.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "b31717d8c9f7620c457f5018a2affa760a65334a"
|
|
43
43
|
}
|
|
@@ -7,11 +7,11 @@ local Observable = require("Observable")
|
|
|
7
7
|
export type ClockFunction = () -> number
|
|
8
8
|
|
|
9
9
|
export type BaseClock = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
GetTime: (self: BaseClock) -> number,
|
|
11
|
+
GetPing: (self: BaseClock) -> number,
|
|
12
|
+
IsSynced: (self: BaseClock) -> boolean,
|
|
13
|
+
ObservePing: (self: BaseClock) -> Observable.Observable<number>,
|
|
14
|
+
GetClockFunction: (self: BaseClock) -> (ClockFunction),
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
return {}
|
|
17
|
+
return {}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
|
-
local BaseClock = require("BaseClock")
|
|
10
9
|
local BaseObject = require("BaseObject")
|
|
11
|
-
local Observable = require("Observable")
|
|
12
10
|
local Rx = require("Rx")
|
|
11
|
+
local Observable = require("Observable")
|
|
12
|
+
local BaseClock = require("BaseClock")
|
|
13
13
|
|
|
14
14
|
local MasterClock = setmetatable({}, BaseObject)
|
|
15
15
|
MasterClock.__index = MasterClock
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
|
-
local BaseClock = require("BaseClock")
|
|
10
9
|
local BaseObject = require("BaseObject")
|
|
11
|
-
local Observable = require("Observable")
|
|
12
10
|
local ValueObject = require("ValueObject")
|
|
11
|
+
local Observable = require("Observable")
|
|
12
|
+
local BaseClock = require("BaseClock")
|
|
13
13
|
|
|
14
14
|
local SlaveClock = setmetatable({}, BaseObject)
|
|
15
15
|
SlaveClock.__index = SlaveClock
|
|
@@ -153,6 +153,7 @@ function TimeSyncService.ObserveSyncedClock(self: TimeSyncService): Observable.O
|
|
|
153
153
|
return Rx.fromPromise(self:PromiseSyncedClock()) :: any
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
+
|
|
156
157
|
function TimeSyncService._buildMasterClock(self: TimeSyncService): MasterClock.MasterClock
|
|
157
158
|
local remoteEvent = GetRemoteEvent(TimeSyncConstants.REMOTE_EVENT_NAME)
|
|
158
159
|
local remoteFunction = GetRemoteFunction(TimeSyncConstants.REMOTE_FUNCTION_NAME)
|
|
@@ -182,4 +183,4 @@ function TimeSyncService.Destroy(self: TimeSyncService)
|
|
|
182
183
|
self._maid:DoCleaning()
|
|
183
184
|
end
|
|
184
185
|
|
|
185
|
-
return TimeSyncService
|
|
186
|
+
return TimeSyncService
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
|
-
local Maid = require("Maid")
|
|
10
9
|
local Promise = require("Promise")
|
|
10
|
+
local Maid = require("Maid")
|
|
11
11
|
|
|
12
12
|
local TimeSyncUtils = {}
|
|
13
13
|
|
|
@@ -40,4 +40,4 @@ function TimeSyncUtils.promiseClockSynced(clock: any): Promise.Promise<any>
|
|
|
40
40
|
return promise
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
return TimeSyncUtils
|
|
43
|
+
return TimeSyncUtils
|