@quenty/cooldown 6.5.0 → 7.0.0-canary.439.eb597ee.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 +8 -0
- package/package.json +19 -19
- package/src/Shared/Tracker/CooldownTracker.lua +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
# [7.0.0-canary.439.eb597ee.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cooldown@6.5.0...@quenty/cooldown@7.0.0-canary.439.eb597ee.0) (2024-01-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/cooldown
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [6.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cooldown@6.4.0...@quenty/cooldown@6.5.0) (2024-01-08)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/cooldown
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/cooldown",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-canary.439.eb597ee.0",
|
|
4
4
|
"description": "Generalized networked cooldown system for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,26 +25,26 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/attributeutils": "
|
|
29
|
-
"@quenty/baseobject": "
|
|
30
|
-
"@quenty/binder": "
|
|
31
|
-
"@quenty/ducktype": "
|
|
32
|
-
"@quenty/instanceutils": "
|
|
33
|
-
"@quenty/loader": "
|
|
34
|
-
"@quenty/maid": "
|
|
35
|
-
"@quenty/promise": "
|
|
36
|
-
"@quenty/propertyvalue": "
|
|
37
|
-
"@quenty/remoting": "
|
|
38
|
-
"@quenty/rx": "
|
|
39
|
-
"@quenty/rxbinderutils": "
|
|
40
|
-
"@quenty/servicebag": "
|
|
41
|
-
"@quenty/signal": "
|
|
42
|
-
"@quenty/table": "
|
|
43
|
-
"@quenty/timesyncservice": "
|
|
44
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/attributeutils": "10.0.0-canary.439.eb597ee.0",
|
|
29
|
+
"@quenty/baseobject": "8.0.0-canary.439.eb597ee.0",
|
|
30
|
+
"@quenty/binder": "10.0.0-canary.439.eb597ee.0",
|
|
31
|
+
"@quenty/ducktype": "3.0.0-canary.439.eb597ee.0",
|
|
32
|
+
"@quenty/instanceutils": "9.0.0-canary.439.eb597ee.0",
|
|
33
|
+
"@quenty/loader": "8.0.0-canary.439.eb597ee.0",
|
|
34
|
+
"@quenty/maid": "2.6.0",
|
|
35
|
+
"@quenty/promise": "8.0.0-canary.439.eb597ee.0",
|
|
36
|
+
"@quenty/propertyvalue": "3.0.0-canary.439.eb597ee.0",
|
|
37
|
+
"@quenty/remoting": "8.0.0-canary.439.eb597ee.0",
|
|
38
|
+
"@quenty/rx": "9.0.0-canary.439.eb597ee.0",
|
|
39
|
+
"@quenty/rxbinderutils": "10.0.0-canary.439.eb597ee.0",
|
|
40
|
+
"@quenty/servicebag": "8.0.0-canary.439.eb597ee.0",
|
|
41
|
+
"@quenty/signal": "4.0.0-canary.439.eb597ee.0",
|
|
42
|
+
"@quenty/table": "3.4.0",
|
|
43
|
+
"@quenty/timesyncservice": "9.0.0-canary.439.eb597ee.0",
|
|
44
|
+
"@quenty/valueobject": "9.0.0-canary.439.eb597ee.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "eb597ee01e62e4dd91190bb7abd1d1404652d5ff"
|
|
50
50
|
}
|
|
@@ -10,6 +10,7 @@ local CooldownShared = require("CooldownShared")
|
|
|
10
10
|
local ValueObject = require("ValueObject")
|
|
11
11
|
local RxBinderUtils = require("RxBinderUtils")
|
|
12
12
|
local CooldownTrackerModel = require("CooldownTrackerModel")
|
|
13
|
+
local Maid = require("Maid")
|
|
13
14
|
|
|
14
15
|
local CooldownTracker = setmetatable({}, BaseObject)
|
|
15
16
|
CooldownTracker.ClassName = "CooldownTracker"
|
|
@@ -68,7 +69,9 @@ function CooldownTracker:IsCoolingDown()
|
|
|
68
69
|
return self._cooldownTrackModel:IsCoolingDown()
|
|
69
70
|
end
|
|
70
71
|
|
|
71
|
-
function CooldownTracker:_handleNewCooldown(new, _old
|
|
72
|
+
function CooldownTracker:_handleNewCooldown(new, _old)
|
|
73
|
+
local maid = Maid.new()
|
|
74
|
+
|
|
72
75
|
if new then
|
|
73
76
|
maid:GiveTask(new.Done:Connect(function()
|
|
74
77
|
if self.CurrentCooldown.Value == new then
|
|
@@ -76,6 +79,8 @@ function CooldownTracker:_handleNewCooldown(new, _old, maid)
|
|
|
76
79
|
end
|
|
77
80
|
end))
|
|
78
81
|
end
|
|
82
|
+
|
|
83
|
+
self._maid._cooldownMaid = maid
|
|
79
84
|
end
|
|
80
85
|
|
|
81
86
|
return CooldownTracker
|