@quenty/timesyncservice 9.0.0 → 10.0.1-canary.444.4f02c27.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,6 +3,66 @@
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
+ ## [10.0.1-canary.444.4f02c27.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/timesyncservice@10.0.0...@quenty/timesyncservice@10.0.1-canary.444.4f02c27.0) (2024-02-13)
7
+
8
+ **Note:** Version bump only for package @quenty/timesyncservice
9
+
10
+
11
+
12
+
13
+
14
+ # [10.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/timesyncservice@9.0.0...@quenty/timesyncservice@10.0.0) (2024-02-13)
15
+
16
+
17
+ ### Features
18
+
19
+ * New loader (breaking changes), fixing loader issues ([#439](https://github.com/Quenty/NevermoreEngine/issues/439)) ([3534345](https://github.com/Quenty/NevermoreEngine/commit/353434522918812953bd9f13fece73e27a4d034d))
20
+
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ * Standard loader
25
+
26
+ Adds new loader version which replicates full structure instead of some partial structure. This allows us to have hot-reloading (in the future), as well as generally do less computation, handle dependencies more carefully, and other changes.
27
+
28
+ This means you'll need to change you how require client-side modules, as we export a simple `loader` module instead of all modules available.
29
+
30
+ Signed-off-by: James Onnen <jonnen0@gmail.com>
31
+
32
+ * fix: Fix missing dependency in ResetService
33
+
34
+ * feat: Add RxPhysicsUtils.observePartMass
35
+
36
+ * fix: Fix package discovery for games
37
+
38
+ * feat: Add UIAlignmentUtils.verticalToHorizontalAlignment(verticalAlignment) and UIAlignmentUtils.horizontalToVerticalAlignment(horizontalAlignment)
39
+
40
+ * feat: AdorneeData:InitAttributes() does not require data as a secondparameter
41
+
42
+ * ci: Upgrade to new rojo 7.4.0
43
+
44
+ * fix: Update loader to handle hoarcekat properly
45
+
46
+ * docs: Fix spacing in Maid
47
+
48
+ * fix: Add new ragdoll constants
49
+
50
+ * fix: Compress influxDB sends
51
+
52
+ * style: Errors use string.format
53
+
54
+ * fix: Handle motor animations
55
+
56
+ * ci: Upgrade rojo version
57
+
58
+ * feat!: Maid no longer is includd in ValueObject.Changed event
59
+
60
+ * docs: Fix docs
61
+
62
+
63
+
64
+
65
+
6
66
  # [9.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/timesyncservice@8.4.0...@quenty/timesyncservice@9.0.0) (2024-01-10)
7
67
 
8
68
  **Note:** Version bump only for package @quenty/timesyncservice
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2023 James Onnen (Quenty)
3
+ Copyright (c) 2014-2024 James Onnen (Quenty)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/timesyncservice",
3
- "version": "9.0.0",
3
+ "version": "10.0.1-canary.444.4f02c27.0",
4
4
  "description": "Quenty's TimeSyncService keeps time synchronized between all clients and the server",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,17 +26,18 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/baseobject": "^7.2.0",
30
- "@quenty/loader": "^7.3.0",
31
- "@quenty/maid": "^2.6.0",
32
- "@quenty/promise": "^7.2.0",
33
- "@quenty/remoting": "^8.0.0",
34
- "@quenty/rx": "^9.0.0",
35
- "@quenty/signal": "^4.0.0",
36
- "@quenty/table": "^3.4.0"
29
+ "@quenty/baseobject": "8.0.1-canary.444.4f02c27.0",
30
+ "@quenty/loader": "8.0.1-canary.444.4f02c27.0",
31
+ "@quenty/maid": "3.0.0",
32
+ "@quenty/promise": "8.0.1-canary.444.4f02c27.0",
33
+ "@quenty/remoting": "9.0.1-canary.444.4f02c27.0",
34
+ "@quenty/rx": "10.0.1-canary.444.4f02c27.0",
35
+ "@quenty/signal": "5.0.1-canary.444.4f02c27.0",
36
+ "@quenty/table": "3.4.0",
37
+ "@quenty/valueobject": "10.0.1-canary.444.4f02c27.0"
37
38
  },
38
39
  "publishConfig": {
39
40
  "access": "public"
40
41
  },
41
- "gitHead": "bf8135721716c976201cb82133e0186ea606b166"
42
+ "gitHead": "4f02c27e96314724c58778e8c113c0d362e16ae4"
42
43
  }
@@ -6,6 +6,7 @@
6
6
  local require = require(script.Parent.loader).load(script)
7
7
 
8
8
  local BaseObject = require("BaseObject")
9
+ local Rx = require("Rx")
9
10
 
10
11
  local MasterClock = setmetatable({}, BaseObject)
11
12
  MasterClock.__index = MasterClock
@@ -59,6 +60,15 @@ function MasterClock:GetClockFunction()
59
60
  return self._clockFunction
60
61
  end
61
62
 
63
+ --[=[
64
+ Observes how much ping the clock has
65
+
66
+ @return Observable<number>
67
+ ]=]
68
+ function MasterClock:ObservePing()
69
+ return Rx.of(0)
70
+ end
71
+
62
72
  --[=[
63
73
  Returns true if the manager has synced with the server
64
74
  @return boolean
@@ -6,6 +6,7 @@
6
6
  local require = require(script.Parent.loader).load(script)
7
7
 
8
8
  local BaseObject = require("BaseObject")
9
+ local ValueObject = require("ValueObject")
9
10
 
10
11
  local SlaveClock = setmetatable({}, BaseObject)
11
12
  SlaveClock.__index = SlaveClock
@@ -24,7 +25,7 @@ function SlaveClock.new(remoteEvent, remoteFunction)
24
25
 
25
26
  self._remoteEvent = remoteEvent or error("No remoteEvent")
26
27
  self._remoteFunction = remoteFunction or error("No remoteFunction")
27
- self._ping = 0
28
+ self._ping = self._maid:Add(ValueObject.new(0, "number"))
28
29
 
29
30
  self._maid:GiveTask(self._remoteEvent.OnClientEvent:Connect(function(timeOne)
30
31
  self:_handleSyncEventAsync(timeOne)
@@ -51,6 +52,10 @@ function SlaveClock:GetClockFunction()
51
52
  return self._clockFunction
52
53
  end
53
54
 
55
+ function SlaveClock:ObservePing()
56
+ return self._ping:Observe()
57
+ end
58
+
54
59
  --[=[
55
60
  Converts the syncedTime to the original tick value.
56
61
  @param syncedTime number
@@ -90,7 +95,7 @@ end
90
95
  @return number
91
96
  ]=]
92
97
  function SlaveClock:GetPing()
93
- return self._ping
98
+ return self._ping.Value
94
99
  end
95
100
 
96
101
  function SlaveClock:_handleSyncEventAsync(timeOne)
@@ -126,7 +131,7 @@ function SlaveClock:_handleSyncEventAsync(timeOne)
126
131
 
127
132
  self._offset = offset -- Estimated difference between server/client
128
133
  self._pneWayDelay = oneWayDelay -- Estimated time for network events to send. (MSDelay/SMDelay)
129
- self._ping = ping
134
+ self._ping.Value = ping
130
135
 
131
136
  self._syncedBindable:Fire()
132
137
  end