@quenty/conditions 10.20.4-canary.559.339cfa7.0 → 10.21.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
CHANGED
|
@@ -3,20 +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
|
+
# [10.21.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/conditions@10.20.2...@quenty/conditions@10.21.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
|
-
## [10.20.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/conditions@10.20.2...@quenty/conditions@10.20.3) (2025-04-10)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @quenty/conditions
|
|
11
|
+
* Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
|
|
20
12
|
|
|
21
13
|
|
|
22
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/conditions",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.21.0-canary.0a5db80.0",
|
|
4
4
|
"description": "Adornee based conditional system that is sufficiently generic to script gameplay.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@quenty/attributeutils": "14.
|
|
27
|
-
"@quenty/brio": "14.
|
|
28
|
-
"@quenty/instanceutils": "13.
|
|
29
|
-
"@quenty/loader": "10.
|
|
30
|
-
"@quenty/maid": "3.
|
|
31
|
-
"@quenty/rx": "13.
|
|
32
|
-
"@quenty/statestack": "14.
|
|
33
|
-
"@quenty/tie": "10.
|
|
26
|
+
"@quenty/attributeutils": "14.18.0-canary.0a5db80.0",
|
|
27
|
+
"@quenty/brio": "14.18.0-canary.0a5db80.0",
|
|
28
|
+
"@quenty/instanceutils": "13.18.0-canary.0a5db80.0",
|
|
29
|
+
"@quenty/loader": "10.9.0-canary.0a5db80.0",
|
|
30
|
+
"@quenty/maid": "3.5.0-canary.0a5db80.0",
|
|
31
|
+
"@quenty/rx": "13.18.0-canary.0a5db80.0",
|
|
32
|
+
"@quenty/statestack": "14.19.0-canary.0a5db80.0",
|
|
33
|
+
"@quenty/tie": "10.21.0-canary.0a5db80.0"
|
|
34
34
|
},
|
|
35
35
|
"contributors": [
|
|
36
36
|
"Quenty"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
|
|
42
42
|
}
|
|
@@ -501,28 +501,17 @@ function AdorneeConditionUtils._getObservableFromConditionObj(conditionObj: Inst
|
|
|
501
501
|
|
|
502
502
|
-- TODO: Allow yielding here
|
|
503
503
|
if coroutine.status(current) ~= "dead" then
|
|
504
|
-
warn(
|
|
505
|
-
string.format(
|
|
506
|
-
"[AdorneeConditionUtils.observeAllowed] - Getting condition yielded from %q",
|
|
507
|
-
conditionObj:GetFullName()
|
|
508
|
-
)
|
|
509
|
-
)
|
|
504
|
+
warn(string.format("[AdorneeConditionUtils.observeAllowed] - Getting condition yielded from %q", conditionObj:GetFullName()))
|
|
510
505
|
return Rx.EMPTY
|
|
511
506
|
end
|
|
512
507
|
|
|
513
508
|
-- TODO: Allow non-observables.
|
|
514
509
|
if not (observable and Observable.isObservable(observable)) then
|
|
515
|
-
warn(
|
|
516
|
-
string.format(
|
|
517
|
-
"[AdorneeConditionUtils.observeAllowed] - Failed to get observable from %q. Got %q",
|
|
518
|
-
conditionObj:GetFullName(),
|
|
519
|
-
tostring(observable)
|
|
520
|
-
)
|
|
521
|
-
)
|
|
510
|
+
warn(string.format("[AdorneeConditionUtils.observeAllowed] - Failed to get observable from %q. Got %q", conditionObj:GetFullName(), tostring(observable)))
|
|
522
511
|
return Rx.EMPTY
|
|
523
512
|
end
|
|
524
513
|
|
|
525
514
|
return observable
|
|
526
515
|
end
|
|
527
516
|
|
|
528
|
-
return AdorneeConditionUtils
|
|
517
|
+
return AdorneeConditionUtils
|
|
@@ -7,8 +7,8 @@ local loader = ServerScriptService:FindFirstChild("LoaderUtils", true).Parent
|
|
|
7
7
|
local require = require(loader).bootstrapGame(ServerScriptService.conditions)
|
|
8
8
|
|
|
9
9
|
local AdorneeConditionUtils = require("AdorneeConditionUtils")
|
|
10
|
-
local AttributeValue = require("AttributeValue")
|
|
11
10
|
local TieDefinition = require("TieDefinition")
|
|
11
|
+
local AttributeValue = require("AttributeValue")
|
|
12
12
|
|
|
13
13
|
do
|
|
14
14
|
local conditionFolder = AdorneeConditionUtils.createConditionContainer()
|
|
@@ -45,11 +45,12 @@ do
|
|
|
45
45
|
door.Name = "Door"
|
|
46
46
|
door.Parent = workspace
|
|
47
47
|
|
|
48
|
+
|
|
48
49
|
local openableInterface = TieDefinition.new("Openable", {
|
|
49
|
-
IsOpen = TieDefinition.Types.PROPERTY
|
|
50
|
+
IsOpen = TieDefinition.Types.PROPERTY;
|
|
50
51
|
})
|
|
51
52
|
openableInterface:Implement(door, {
|
|
52
|
-
IsOpen = AttributeValue.new(door, "IsOpen", false)
|
|
53
|
+
IsOpen = AttributeValue.new(door, "IsOpen", false);
|
|
53
54
|
})
|
|
54
55
|
|
|
55
56
|
local canOpenCondition = AdorneeConditionUtils.createConditionContainer()
|
|
@@ -62,4 +63,4 @@ do
|
|
|
62
63
|
AdorneeConditionUtils.observeConditionsMet(canOpenCondition, door):Subscribe(function(isAllowed)
|
|
63
64
|
print("Is door opening allowed", isAllowed)
|
|
64
65
|
end)
|
|
65
|
-
end
|
|
66
|
+
end
|