@quenty/cooldown 11.26.2 → 11.26.3-canary.607f741.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/Client/Binders/CooldownClient.lua +8 -6
- package/src/Server/Binders/Cooldown.lua +11 -9
- package/src/Shared/Binders/CooldownBase.lua +13 -11
- package/src/Shared/Binders/CooldownShared.lua +8 -6
- package/src/Shared/Model/CooldownModel.lua +13 -11
- package/src/Shared/Model/CooldownTrackerModel.lua +8 -6
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
|
+
## [11.26.3-canary.607f741.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cooldown@11.26.2...@quenty/cooldown@11.26.3-canary.607f741.0) (2025-12-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/cooldown
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [11.26.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cooldown@11.26.1...@quenty/cooldown@11.26.2) (2025-11-22)
|
|
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": "11.26.
|
|
3
|
+
"version": "11.26.3-canary.607f741.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": "14.20.2-canary.607f741.0",
|
|
29
|
+
"@quenty/baseobject": "10.9.0",
|
|
30
|
+
"@quenty/binder": "14.25.3-canary.607f741.0",
|
|
31
|
+
"@quenty/ducktype": "5.9.0",
|
|
32
|
+
"@quenty/instanceutils": "13.20.2",
|
|
33
|
+
"@quenty/loader": "10.9.0",
|
|
34
|
+
"@quenty/maid": "3.5.0",
|
|
35
|
+
"@quenty/promise": "10.12.0",
|
|
36
|
+
"@quenty/propertyvalue": "7.20.2",
|
|
37
|
+
"@quenty/remoting": "12.21.2",
|
|
38
|
+
"@quenty/rx": "13.20.0",
|
|
39
|
+
"@quenty/rxbinderutils": "14.25.3-canary.607f741.0",
|
|
40
|
+
"@quenty/servicebag": "11.13.2-canary.607f741.0",
|
|
41
|
+
"@quenty/signal": "7.11.1",
|
|
42
|
+
"@quenty/table": "3.8.0",
|
|
43
|
+
"@quenty/timesyncservice": "13.22.3-canary.607f741.0",
|
|
44
|
+
"@quenty/valueobject": "13.21.3-canary.607f741.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "607f7418f46b85cd5843f1c5665911eb2dd7e3fb"
|
|
50
50
|
}
|
|
@@ -16,12 +16,14 @@ local CooldownClient = setmetatable({}, CooldownBase)
|
|
|
16
16
|
CooldownClient.ClassName = "CooldownClient"
|
|
17
17
|
CooldownClient.__index = CooldownClient
|
|
18
18
|
|
|
19
|
-
export type CooldownClient =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
export type CooldownClient =
|
|
20
|
+
typeof(setmetatable(
|
|
21
|
+
{} :: {
|
|
22
|
+
_serviceBag: ServiceBag.ServiceBag,
|
|
23
|
+
},
|
|
24
|
+
{} :: typeof({ __index = CooldownClient })
|
|
25
|
+
))
|
|
26
|
+
& CooldownBase.CooldownBase
|
|
25
27
|
|
|
26
28
|
--[=[
|
|
27
29
|
Constructs a new cooldown. Should be done via [CooldownBindersClient]. To create an
|
|
@@ -20,15 +20,17 @@ local Cooldown = setmetatable({}, CooldownBase)
|
|
|
20
20
|
Cooldown.ClassName = "Cooldown"
|
|
21
21
|
Cooldown.__index = Cooldown
|
|
22
22
|
|
|
23
|
-
export type Cooldown =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
export type Cooldown =
|
|
24
|
+
typeof(setmetatable(
|
|
25
|
+
{} :: {
|
|
26
|
+
_serviceBag: ServiceBag.ServiceBag,
|
|
27
|
+
_syncedClock: TimeSyncService.SyncedClock,
|
|
28
|
+
_finishTime: PropertyValue.PropertyValue<number>,
|
|
29
|
+
_startTime: AttributeValue.AttributeValue<number>,
|
|
30
|
+
},
|
|
31
|
+
{} :: typeof({ __index = Cooldown })
|
|
32
|
+
))
|
|
33
|
+
& CooldownBase.CooldownBase
|
|
32
34
|
|
|
33
35
|
--[=[
|
|
34
36
|
Constructs a new cooldown. Should be done via [Binder].
|
|
@@ -19,17 +19,19 @@ local CooldownBase = setmetatable({}, BaseObject)
|
|
|
19
19
|
CooldownBase.ClassName = "CooldownBase"
|
|
20
20
|
CooldownBase.__index = CooldownBase
|
|
21
21
|
|
|
22
|
-
export type CooldownBase =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
export type CooldownBase =
|
|
23
|
+
typeof(setmetatable(
|
|
24
|
+
{} :: {
|
|
25
|
+
_obj: NumberValue,
|
|
26
|
+
_serviceBag: ServiceBag.ServiceBag,
|
|
27
|
+
_cooldownModel: CooldownModel.CooldownModel,
|
|
28
|
+
_timeSyncService: TimeSyncService.TimeSyncService,
|
|
29
|
+
_syncedClock: TimeSyncService.SyncedClock,
|
|
30
|
+
Done: Signal.Signal<()>,
|
|
31
|
+
},
|
|
32
|
+
{} :: typeof({ __index = CooldownBase })
|
|
33
|
+
))
|
|
34
|
+
& BaseObject.BaseObject
|
|
33
35
|
|
|
34
36
|
--[=[
|
|
35
37
|
Constructs a new Cooldown.
|
|
@@ -13,12 +13,14 @@ local CooldownShared = setmetatable({}, CooldownBase)
|
|
|
13
13
|
CooldownShared.ClassName = "CooldownShared"
|
|
14
14
|
CooldownShared.__index = CooldownShared
|
|
15
15
|
|
|
16
|
-
export type CooldownShared =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
export type CooldownShared =
|
|
17
|
+
typeof(setmetatable(
|
|
18
|
+
{} :: {
|
|
19
|
+
_serviceBag: ServiceBag.ServiceBag,
|
|
20
|
+
},
|
|
21
|
+
{} :: typeof({ __index = CooldownShared })
|
|
22
|
+
))
|
|
23
|
+
& CooldownBase.CooldownBase
|
|
22
24
|
|
|
23
25
|
function CooldownShared.new(numberValue: NumberValue, serviceBag: ServiceBag.ServiceBag)
|
|
24
26
|
local self = setmetatable(CooldownBase.new(numberValue, serviceBag), CooldownShared)
|
|
@@ -17,17 +17,19 @@ CooldownModel.__index = CooldownModel
|
|
|
17
17
|
|
|
18
18
|
export type Clock = () -> number
|
|
19
19
|
|
|
20
|
-
export type CooldownModel =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
export type CooldownModel =
|
|
21
|
+
typeof(setmetatable(
|
|
22
|
+
{} :: {
|
|
23
|
+
_length: ValueObject.ValueObject<number>,
|
|
24
|
+
_startTime: ValueObject.ValueObject<number>,
|
|
25
|
+
_clock: ValueObject.ValueObject<Clock>,
|
|
26
|
+
_doneFired: boolean,
|
|
27
|
+
Done: Signal.Signal<()>,
|
|
28
|
+
_cleanup: any,
|
|
29
|
+
},
|
|
30
|
+
{} :: typeof({ __index = CooldownModel })
|
|
31
|
+
))
|
|
32
|
+
& BaseObject.BaseObject
|
|
31
33
|
|
|
32
34
|
--[=[
|
|
33
35
|
Creates a new cooldown model
|
|
@@ -18,12 +18,14 @@ local CooldownTrackerModel = setmetatable({}, BaseObject)
|
|
|
18
18
|
CooldownTrackerModel.ClassName = "CooldownTrackerModel"
|
|
19
19
|
CooldownTrackerModel.__index = CooldownTrackerModel
|
|
20
20
|
|
|
21
|
-
export type CooldownTrackerModel =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
export type CooldownTrackerModel =
|
|
22
|
+
typeof(setmetatable(
|
|
23
|
+
{} :: {
|
|
24
|
+
_currentCooldownModel: ValueObject.ValueObject<CooldownModel.CooldownModel?>,
|
|
25
|
+
},
|
|
26
|
+
{} :: typeof({ __index = CooldownTrackerModel })
|
|
27
|
+
))
|
|
28
|
+
& BaseObject.BaseObject
|
|
27
29
|
|
|
28
30
|
--[=[
|
|
29
31
|
Creates a new cooldown tracker model
|