@quenty/actionmanager 13.19.5-canary.559.339cfa7.0 → 13.20.0-canary.0a5db80.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 +2 -18
- package/package.json +7 -7
- package/src/Client/ActionManager.lua +5 -10
- package/src/Client/BaseAction.lua +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,28 +3,12 @@
|
|
|
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.20.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/actionmanager@13.19.2...@quenty/actionmanager@13.20.0-canary.0a5db80.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* Additional type checking updates ([
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [13.19.4](https://github.com/Quenty/NevermoreEngine/compare/@quenty/actionmanager@13.19.3...@quenty/actionmanager@13.19.4) (2025-04-16)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @quenty/actionmanager
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## [13.19.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/actionmanager@13.19.2...@quenty/actionmanager@13.19.3) (2025-04-10)
|
|
26
|
-
|
|
27
|
-
**Note:** Version bump only for package @quenty/actionmanager
|
|
11
|
+
* Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
|
|
28
12
|
|
|
29
13
|
|
|
30
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/actionmanager",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.20.0-canary.0a5db80.0",
|
|
4
4
|
"description": "Holds single toggleable actions (like a tool system)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/enabledmixin": "11.
|
|
29
|
-
"@quenty/loader": "10.
|
|
30
|
-
"@quenty/maid": "3.
|
|
31
|
-
"@quenty/signal": "7.
|
|
32
|
-
"@quenty/valueobject": "13.
|
|
28
|
+
"@quenty/enabledmixin": "11.13.0-canary.0a5db80.0",
|
|
29
|
+
"@quenty/loader": "10.9.0-canary.0a5db80.0",
|
|
30
|
+
"@quenty/maid": "3.5.0-canary.0a5db80.0",
|
|
31
|
+
"@quenty/signal": "7.11.0-canary.0a5db80.0",
|
|
32
|
+
"@quenty/valueobject": "13.18.0-canary.0a5db80.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
|
|
38
38
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Holds single toggleable actions (like a tool system).
|
|
3
3
|
|
|
4
4
|
:::info
|
|
5
|
-
This is legacy code and probably
|
|
5
|
+
This is legacy code and probably shoudl not be used in new games.
|
|
6
6
|
:::
|
|
7
7
|
|
|
8
8
|
@class ActionManager
|
|
@@ -12,9 +12,9 @@ local require = require(script.Parent.loader).load(script)
|
|
|
12
12
|
|
|
13
13
|
local ContextActionService = game:GetService("ContextActionService")
|
|
14
14
|
|
|
15
|
-
local Maid = require("Maid")
|
|
16
|
-
local Signal = require("Signal")
|
|
17
15
|
local ValueObject = require("ValueObject")
|
|
16
|
+
local Signal = require("Signal")
|
|
17
|
+
local Maid = require("Maid")
|
|
18
18
|
|
|
19
19
|
local ActionManager = {}
|
|
20
20
|
ActionManager.__index = ActionManager
|
|
@@ -50,12 +50,7 @@ function ActionManager.new()
|
|
|
50
50
|
|
|
51
51
|
-- Immediately deactivate
|
|
52
52
|
if value and not value.IsActivatedValue.Value then
|
|
53
|
-
warn(
|
|
54
|
-
string.format(
|
|
55
|
-
"[ActionManager.ActiveAction.Changed] - Immediate deactivation of %q",
|
|
56
|
-
tostring(value:GetName())
|
|
57
|
-
)
|
|
58
|
-
)
|
|
53
|
+
warn(string.format("[ActionManager.ActiveAction.Changed] - Immediate deactivation of %q", tostring(value:GetName())))
|
|
59
54
|
self.ActiveAction.Value = nil
|
|
60
55
|
end
|
|
61
56
|
end))
|
|
@@ -119,4 +114,4 @@ function ActionManager:Destroy()
|
|
|
119
114
|
self._maid:Destroy()
|
|
120
115
|
end
|
|
121
116
|
|
|
122
|
-
return ActionManager
|
|
117
|
+
return ActionManager
|
|
@@ -12,9 +12,9 @@ local require = require(script.Parent.loader).load(script)
|
|
|
12
12
|
|
|
13
13
|
local ContextActionService = game:GetService("ContextActionService")
|
|
14
14
|
|
|
15
|
-
local EnabledMixin = require("EnabledMixin")
|
|
16
|
-
local Maid = require("Maid")
|
|
17
15
|
local Signal = require("Signal")
|
|
16
|
+
local Maid = require("Maid")
|
|
17
|
+
local EnabledMixin = require("EnabledMixin")
|
|
18
18
|
local ValueObject = require("ValueObject")
|
|
19
19
|
|
|
20
20
|
local BaseAction = {}
|
|
@@ -51,6 +51,7 @@ function BaseAction.new(actionData)
|
|
|
51
51
|
|
|
52
52
|
self:_withActionData(actionData)
|
|
53
53
|
|
|
54
|
+
|
|
54
55
|
return self
|
|
55
56
|
end
|
|
56
57
|
|
|
@@ -112,10 +113,10 @@ function BaseAction:GetData()
|
|
|
112
113
|
end
|
|
113
114
|
|
|
114
115
|
function BaseAction:ToggleActivate(...)
|
|
115
|
-
self._activateData = {
|
|
116
|
+
self._activateData = {...}
|
|
116
117
|
|
|
117
118
|
if self:IsEnabled() then
|
|
118
|
-
self.IsActivatedValue.Value = not self.IsActivatedValue.Value
|
|
119
|
+
self.IsActivatedValue.Value = not (self.IsActivatedValue.Value)
|
|
119
120
|
else
|
|
120
121
|
warn("[BaseAction.ToggleActivate] - Not activating, not enabled")
|
|
121
122
|
self.IsActivatedValue.Value = false
|
|
@@ -131,7 +132,7 @@ function BaseAction:Deactivate()
|
|
|
131
132
|
end
|
|
132
133
|
|
|
133
134
|
function BaseAction:Activate(...)
|
|
134
|
-
self._activateData = {
|
|
135
|
+
self._activateData = {...}
|
|
135
136
|
|
|
136
137
|
if self:IsEnabled() then
|
|
137
138
|
self.IsActivatedValue.Value = true
|
|
@@ -146,4 +147,4 @@ function BaseAction:Destroy()
|
|
|
146
147
|
setmetatable(self, nil)
|
|
147
148
|
end
|
|
148
149
|
|
|
149
|
-
return BaseAction
|
|
150
|
+
return BaseAction
|