@quenty/statestack 14.11.1-canary.513.484c203.0 → 14.12.1
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 -3
- package/package.json +8 -8
- package/src/Shared/StateStack.lua +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,17 @@
|
|
|
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
|
-
## [14.
|
|
6
|
+
## [14.12.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/statestack@14.12.0...@quenty/statestack@14.12.1) (2024-11-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/statestack
|
|
9
|
+
|
|
7
10
|
|
|
8
11
|
|
|
9
|
-
### Features
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
|
|
14
|
+
# [14.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/statestack@14.11.0...@quenty/statestack@14.12.0) (2024-11-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/statestack
|
|
12
17
|
|
|
13
18
|
|
|
14
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/statestack",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.12.1",
|
|
4
4
|
"description": "Stack of values that allows multiple systems to enable or disable a state",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "10.7.
|
|
29
|
-
"@quenty/brio": "14.
|
|
30
|
-
"@quenty/loader": "10.7.
|
|
31
|
-
"@quenty/maid": "3.4.0",
|
|
32
|
-
"@quenty/rx": "13.
|
|
33
|
-
"@quenty/valueobject": "13.
|
|
28
|
+
"@quenty/baseobject": "^10.7.1",
|
|
29
|
+
"@quenty/brio": "^14.11.1",
|
|
30
|
+
"@quenty/loader": "^10.7.1",
|
|
31
|
+
"@quenty/maid": "^3.4.0",
|
|
32
|
+
"@quenty/rx": "^13.11.1",
|
|
33
|
+
"@quenty/valueobject": "^13.11.1"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "01c43a0ddd3c5e0cb2d9027313dbfa9852eedef1"
|
|
39
39
|
}
|
|
@@ -103,31 +103,6 @@ function StateStack:PushState(state)
|
|
|
103
103
|
end
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
--[=[
|
|
107
|
-
Pushes the brio's content onto the stack for the lifetime of the brio
|
|
108
|
-
|
|
109
|
-
@param brio Brio
|
|
110
|
-
@return function -- Cleanup function
|
|
111
|
-
]=]
|
|
112
|
-
function StateStack:PushBrio(brio)
|
|
113
|
-
if brio:IsDead() then
|
|
114
|
-
return
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
local maid, state = brio:ToMaidAndValue()
|
|
118
|
-
maid:GiveTask(self:PushState(state))
|
|
119
|
-
|
|
120
|
-
maid:GiveTask(function()
|
|
121
|
-
self._maid[maid] = nil
|
|
122
|
-
end)
|
|
123
|
-
|
|
124
|
-
self._maid[maid] = maid
|
|
125
|
-
|
|
126
|
-
return function()
|
|
127
|
-
self._maid[maid] = nil
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
|
|
131
106
|
function StateStack:_popState(data)
|
|
132
107
|
local index = table.find(self._stateStack, data)
|
|
133
108
|
if index then
|