@quenty/cooldown 11.21.0-canary.ae8d76d.0 → 11.21.1-canary.d9ea7a3.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 +10 -2
- package/package.json +19 -19
- package/src/Client/Binders/CooldownClient.lua +1 -1
- package/src/Client/CooldownServiceClient.lua +1 -1
- package/src/Server/CooldownService.lua +1 -1
- package/src/Shared/Binders/CooldownBase.lua +1 -1
- package/src/Shared/Binders/CooldownShared.lua +1 -1
- package/src/Shared/CooldownConstants.lua +3 -3
- package/src/Shared/CooldownUtils.lua +1 -2
- package/src/Shared/Model/CooldownModel.lua +3 -3
- package/src/Shared/Model/CooldownTrackerModel.lua +8 -5
- package/src/Shared/RxCooldownUtils.lua +3 -3
- package/src/Shared/Tracker/CooldownTracker.lua +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,15 @@
|
|
|
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
|
+
## [11.21.1-canary.d9ea7a3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cooldown@11.21.0...@quenty/cooldown@11.21.1-canary.d9ea7a3.0) (2025-05-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/cooldown
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [11.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cooldown@11.20.3...@quenty/cooldown@11.21.0) (2025-05-10)
|
|
7
15
|
|
|
8
16
|
|
|
9
17
|
### Bug Fixes
|
|
@@ -13,7 +21,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
13
21
|
|
|
14
22
|
### Features
|
|
15
23
|
|
|
16
|
-
* Add even more types ([
|
|
24
|
+
* Add even more types ([b31717d](https://github.com/Quenty/NevermoreEngine/commit/b31717d8c9f7620c457f5018a2affa760a65334a))
|
|
17
25
|
|
|
18
26
|
|
|
19
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/cooldown",
|
|
3
|
-
"version": "11.21.
|
|
3
|
+
"version": "11.21.1-canary.d9ea7a3.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": "14.18.0
|
|
29
|
-
"@quenty/baseobject": "10.
|
|
30
|
-
"@quenty/binder": "14.20.
|
|
31
|
-
"@quenty/ducktype": "5.
|
|
32
|
-
"@quenty/instanceutils": "13.18.0
|
|
33
|
-
"@quenty/loader": "10.
|
|
34
|
-
"@quenty/maid": "3.
|
|
35
|
-
"@quenty/promise": "10.11.0
|
|
36
|
-
"@quenty/propertyvalue": "7.18.0
|
|
37
|
-
"@quenty/remoting": "12.19.0
|
|
38
|
-
"@quenty/rx": "13.18.0
|
|
39
|
-
"@quenty/rxbinderutils": "14.20.
|
|
40
|
-
"@quenty/servicebag": "11.12.
|
|
41
|
-
"@quenty/signal": "7.
|
|
42
|
-
"@quenty/table": "3.
|
|
43
|
-
"@quenty/timesyncservice": "13.19.0
|
|
44
|
-
"@quenty/valueobject": "13.18.0
|
|
28
|
+
"@quenty/attributeutils": "14.18.0",
|
|
29
|
+
"@quenty/baseobject": "10.9.0",
|
|
30
|
+
"@quenty/binder": "14.20.1-canary.d9ea7a3.0",
|
|
31
|
+
"@quenty/ducktype": "5.9.0",
|
|
32
|
+
"@quenty/instanceutils": "13.18.0",
|
|
33
|
+
"@quenty/loader": "10.9.0",
|
|
34
|
+
"@quenty/maid": "3.5.0",
|
|
35
|
+
"@quenty/promise": "10.11.0",
|
|
36
|
+
"@quenty/propertyvalue": "7.18.0",
|
|
37
|
+
"@quenty/remoting": "12.19.0",
|
|
38
|
+
"@quenty/rx": "13.18.0",
|
|
39
|
+
"@quenty/rxbinderutils": "14.20.1-canary.d9ea7a3.0",
|
|
40
|
+
"@quenty/servicebag": "11.12.1-canary.d9ea7a3.0",
|
|
41
|
+
"@quenty/signal": "7.11.0",
|
|
42
|
+
"@quenty/table": "3.8.0",
|
|
43
|
+
"@quenty/timesyncservice": "13.19.0",
|
|
44
|
+
"@quenty/valueobject": "13.18.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d9ea7a314a7d50712e6abac75d29901c1edea556"
|
|
50
50
|
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
local require = require(script.Parent.loader).load(script)
|
|
10
10
|
|
|
11
|
-
local CooldownBase = require("CooldownBase")
|
|
12
11
|
local Binder = require("Binder")
|
|
12
|
+
local CooldownBase = require("CooldownBase")
|
|
13
13
|
local ServiceBag = require("ServiceBag")
|
|
14
14
|
|
|
15
15
|
local CooldownClient = setmetatable({}, CooldownBase)
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
|
-
local CooldownBase = require("CooldownBase")
|
|
9
8
|
local Binder = require("Binder")
|
|
9
|
+
local CooldownBase = require("CooldownBase")
|
|
10
10
|
local ServiceBag = require("ServiceBag")
|
|
11
11
|
|
|
12
12
|
local CooldownShared = setmetatable({}, CooldownBase)
|
|
@@ -9,6 +9,6 @@ local require = require(script.Parent.loader).load(script)
|
|
|
9
9
|
local Table = require("Table")
|
|
10
10
|
|
|
11
11
|
return Table.readonly({
|
|
12
|
-
COOLDOWN_TIME_NAME = "CooldownTime"
|
|
13
|
-
COOLDOWN_START_TIME_ATTRIBUTE = "CooldownStartTime"
|
|
14
|
-
})
|
|
12
|
+
COOLDOWN_TIME_NAME = "CooldownTime",
|
|
13
|
+
COOLDOWN_START_TIME_ATTRIBUTE = "CooldownStartTime",
|
|
14
|
+
})
|
|
@@ -47,7 +47,6 @@ function CooldownUtils.findCooldown(cooldownBinder, parent: Instance)
|
|
|
47
47
|
return BinderUtils.findFirstChild(cooldownBinder, parent)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
|
|
51
50
|
--[=[
|
|
52
51
|
Makes a copy of the cooldown
|
|
53
52
|
@param cooldown Instance
|
|
@@ -61,4 +60,4 @@ function CooldownUtils.clone(cooldown: NumberValue): NumberValue
|
|
|
61
60
|
return copy
|
|
62
61
|
end
|
|
63
62
|
|
|
64
|
-
return CooldownUtils
|
|
63
|
+
return CooldownUtils
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
8
|
local BaseObject = require("BaseObject")
|
|
9
|
-
local ValueObject = require("ValueObject")
|
|
10
|
-
local Signal = require("Signal")
|
|
11
|
-
local Rx = require("Rx")
|
|
12
9
|
local DuckTypeUtils = require("DuckTypeUtils")
|
|
10
|
+
local Rx = require("Rx")
|
|
11
|
+
local Signal = require("Signal")
|
|
12
|
+
local ValueObject = require("ValueObject")
|
|
13
13
|
|
|
14
14
|
local CooldownModel = setmetatable({}, BaseObject)
|
|
15
15
|
CooldownModel.ClassName = "CooldownModel"
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
local require = require(script.Parent.loader).load(script)
|
|
9
9
|
|
|
10
10
|
local BaseObject = require("BaseObject")
|
|
11
|
-
local
|
|
12
|
-
local DuckTypeUtils = require("DuckTypeUtils")
|
|
11
|
+
local Brio = require("Brio")
|
|
13
12
|
local CooldownModel = require("CooldownModel")
|
|
13
|
+
local DuckTypeUtils = require("DuckTypeUtils")
|
|
14
14
|
local Observable = require("Observable")
|
|
15
|
-
local
|
|
15
|
+
local ValueObject = require("ValueObject")
|
|
16
16
|
|
|
17
17
|
local CooldownTrackerModel = setmetatable({}, BaseObject)
|
|
18
18
|
CooldownTrackerModel.ClassName = "CooldownTrackerModel"
|
|
@@ -90,7 +90,10 @@ end
|
|
|
90
90
|
@param cooldownModel CooldownModel
|
|
91
91
|
@return function
|
|
92
92
|
]=]
|
|
93
|
-
function CooldownTrackerModel.SetCooldownModel(
|
|
93
|
+
function CooldownTrackerModel.SetCooldownModel(
|
|
94
|
+
self: CooldownTrackerModel,
|
|
95
|
+
cooldownModel: ValueObject.Mountable<CooldownModel.CooldownModel?>
|
|
96
|
+
): () -> ()
|
|
94
97
|
self._currentCooldownModel:Mount(cooldownModel)
|
|
95
98
|
|
|
96
99
|
return function()
|
|
@@ -104,4 +107,4 @@ function CooldownTrackerModel.SetCooldownModel(self: CooldownTrackerModel, coold
|
|
|
104
107
|
end
|
|
105
108
|
end
|
|
106
109
|
|
|
107
|
-
return CooldownTrackerModel
|
|
110
|
+
return CooldownTrackerModel
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
|
-
local RxBinderUtils = require("RxBinderUtils")
|
|
10
|
-
local Observable = require("Observable")
|
|
11
9
|
local Brio = require("Brio")
|
|
10
|
+
local Observable = require("Observable")
|
|
11
|
+
local RxBinderUtils = require("RxBinderUtils")
|
|
12
12
|
|
|
13
13
|
local RxCooldownUtils = {}
|
|
14
14
|
|
|
@@ -22,4 +22,4 @@ function RxCooldownUtils.observeCooldownBrio(cooldownBinder, parent: Instance):
|
|
|
22
22
|
return RxBinderUtils.observeBoundChildClassBrio(cooldownBinder, parent)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
return RxCooldownUtils
|
|
25
|
+
return RxCooldownUtils
|
|
@@ -7,10 +7,10 @@ local require = require(script.Parent.loader).load(script)
|
|
|
7
7
|
|
|
8
8
|
local BaseObject = require("BaseObject")
|
|
9
9
|
local CooldownShared = require("CooldownShared")
|
|
10
|
-
local ValueObject = require("ValueObject")
|
|
11
|
-
local RxBinderUtils = require("RxBinderUtils")
|
|
12
10
|
local CooldownTrackerModel = require("CooldownTrackerModel")
|
|
13
11
|
local Maid = require("Maid")
|
|
12
|
+
local RxBinderUtils = require("RxBinderUtils")
|
|
13
|
+
local ValueObject = require("ValueObject")
|
|
14
14
|
|
|
15
15
|
local CooldownTracker = setmetatable({}, BaseObject)
|
|
16
16
|
CooldownTracker.ClassName = "CooldownTracker"
|
|
@@ -32,8 +32,8 @@ function CooldownTracker.new(serviceBag, parent)
|
|
|
32
32
|
end))
|
|
33
33
|
|
|
34
34
|
-- Handle not running
|
|
35
|
-
self._maid:GiveTask(
|
|
36
|
-
:Subscribe(function(brio)
|
|
35
|
+
self._maid:GiveTask(
|
|
36
|
+
RxBinderUtils.observeBoundChildClassBrio(self._cooldownBinder, self._obj):Subscribe(function(brio)
|
|
37
37
|
if brio:IsDead() then
|
|
38
38
|
return
|
|
39
39
|
end
|
|
@@ -56,7 +56,8 @@ function CooldownTracker.new(serviceBag, parent)
|
|
|
56
56
|
self.CurrentCooldown.Value = nil
|
|
57
57
|
end
|
|
58
58
|
end)
|
|
59
|
-
end)
|
|
59
|
+
end)
|
|
60
|
+
)
|
|
60
61
|
|
|
61
62
|
return self
|
|
62
63
|
end
|
|
@@ -83,4 +84,4 @@ function CooldownTracker:_handleNewCooldown(new, _old)
|
|
|
83
84
|
self._maid._cooldownMaid = maid
|
|
84
85
|
end
|
|
85
86
|
|
|
86
|
-
return CooldownTracker
|
|
87
|
+
return CooldownTracker
|