@quenty/r15utils 13.17.3 → 13.17.4-canary.11a5dcf.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 +11 -0
- package/package.json +5 -5
- package/src/Shared/RxR15Utils.lua +26 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +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
|
+
## [13.17.4-canary.11a5dcf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@13.17.3...@quenty/r15utils@13.17.4-canary.11a5dcf.0) (2025-05-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Additional type checking updates ([05ba29a](https://github.com/Quenty/NevermoreEngine/commit/05ba29a03efc9f3feed74b34f1d9dfb237496214))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [13.17.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@13.17.2...@quenty/r15utils@13.17.3) (2025-04-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/r15utils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/r15utils",
|
|
3
|
-
"version": "13.17.
|
|
3
|
+
"version": "13.17.4-canary.11a5dcf.0",
|
|
4
4
|
"description": "Utility methods for R15 Characters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "
|
|
29
|
-
"@quenty/instanceutils": "
|
|
30
|
-
"@quenty/loader": "
|
|
28
|
+
"@quenty/brio": "14.17.4-canary.11a5dcf.0",
|
|
29
|
+
"@quenty/instanceutils": "13.17.4-canary.11a5dcf.0",
|
|
30
|
+
"@quenty/loader": "10.8.4-canary.11a5dcf.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "11a5dcf7d4c7a0bfbf3337e97d30e8346ea09d3f"
|
|
36
36
|
}
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
|
-
local
|
|
9
|
+
local Brio = require("Brio")
|
|
10
|
+
local Observable = require("Observable")
|
|
10
11
|
local RxBrioUtils = require("RxBrioUtils")
|
|
12
|
+
local RxInstanceUtils = require("RxInstanceUtils")
|
|
11
13
|
|
|
12
14
|
export type R15Side = "Left" | "Right"
|
|
13
15
|
|
|
@@ -28,7 +30,7 @@ function RxR15Utils.observeRigAttachmentBrio(character: Model, partName: string,
|
|
|
28
30
|
return RxR15Utils.observeCharacterPartBrio(character, partName):Pipe({
|
|
29
31
|
RxBrioUtils.switchMapBrio(function(part)
|
|
30
32
|
return RxInstanceUtils.observeLastNamedChildBrio(part, "Attachment", attachmentName)
|
|
31
|
-
end),
|
|
33
|
+
end) :: any,
|
|
32
34
|
})
|
|
33
35
|
end
|
|
34
36
|
|
|
@@ -39,7 +41,11 @@ end
|
|
|
39
41
|
@param motorName string
|
|
40
42
|
@return Observable<Brio<Motor6D>>
|
|
41
43
|
]=]
|
|
42
|
-
function RxR15Utils.observeRigMotorBrio(
|
|
44
|
+
function RxR15Utils.observeRigMotorBrio(
|
|
45
|
+
character: Model,
|
|
46
|
+
partName: string,
|
|
47
|
+
motorName: string
|
|
48
|
+
): Observable.Observable<Brio.Brio<Motor6D>>
|
|
43
49
|
assert(typeof(character) == "Instance", "Bad character")
|
|
44
50
|
assert(type(partName) == "string", "Bad partName")
|
|
45
51
|
assert(type(motorName) == "string", "Bad motorName")
|
|
@@ -47,9 +53,9 @@ function RxR15Utils.observeRigMotorBrio(character: Model, partName: string, moto
|
|
|
47
53
|
return RxInstanceUtils.observeLastNamedChildBrio(character, "BasePart", partName):Pipe({
|
|
48
54
|
RxBrioUtils.switchMapBrio(function(part)
|
|
49
55
|
return RxInstanceUtils.observeLastNamedChildBrio(part, "Motor6D", motorName)
|
|
50
|
-
end),
|
|
51
|
-
RxBrioUtils.onlyLastBrioSurvives(),
|
|
52
|
-
})
|
|
56
|
+
end) :: any,
|
|
57
|
+
RxBrioUtils.onlyLastBrioSurvives() :: any,
|
|
58
|
+
}) :: any
|
|
53
59
|
end
|
|
54
60
|
|
|
55
61
|
--[=[
|
|
@@ -67,9 +73,9 @@ function RxR15Utils.observeRigWeldBrio(character: Model, partName: string, weldN
|
|
|
67
73
|
return RxInstanceUtils.observeLastNamedChildBrio(character, "BasePart", partName):Pipe({
|
|
68
74
|
RxBrioUtils.switchMapBrio(function(part)
|
|
69
75
|
return RxInstanceUtils.observeLastNamedChildBrio(part, "Weld", weldName)
|
|
70
|
-
end),
|
|
71
|
-
RxBrioUtils.onlyLastBrioSurvives(),
|
|
72
|
-
})
|
|
76
|
+
end) :: any,
|
|
77
|
+
RxBrioUtils.onlyLastBrioSurvives() :: any,
|
|
78
|
+
}) :: any
|
|
73
79
|
end
|
|
74
80
|
|
|
75
81
|
--[=[
|
|
@@ -90,16 +96,19 @@ end
|
|
|
90
96
|
@param character Model
|
|
91
97
|
@return Observable<Brio<Humanoid>>
|
|
92
98
|
]=]
|
|
93
|
-
function RxR15Utils.observeHumanoidBrio(character: Model)
|
|
99
|
+
function RxR15Utils.observeHumanoidBrio(character: Model): Observable.Observable<Brio.Brio<Humanoid>>
|
|
94
100
|
assert(typeof(character) == "Instance", "Bad character")
|
|
95
101
|
|
|
96
|
-
return RxInstanceUtils.observeLastNamedChildBrio(character, "Humanoid", "Humanoid")
|
|
102
|
+
return RxInstanceUtils.observeLastNamedChildBrio(character, "Humanoid", "Humanoid") :: any
|
|
97
103
|
end
|
|
98
104
|
|
|
99
|
-
function RxR15Utils.observeHumanoidScaleValueObject(
|
|
105
|
+
function RxR15Utils.observeHumanoidScaleValueObject(
|
|
106
|
+
humanoid: Humanoid,
|
|
107
|
+
scaleValueName: string
|
|
108
|
+
): Observable.Observable<Brio.Brio<NumberValue>>
|
|
100
109
|
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
101
110
|
|
|
102
|
-
return RxInstanceUtils.observeLastNamedChildBrio(humanoid, "NumberValue", scaleValueName)
|
|
111
|
+
return RxInstanceUtils.observeLastNamedChildBrio(humanoid, "NumberValue", scaleValueName) :: any
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
function RxR15Utils.observeHumanoidScaleProperty(humanoid: Humanoid, scaleValueName: string)
|
|
@@ -108,12 +117,12 @@ function RxR15Utils.observeHumanoidScaleProperty(humanoid: Humanoid, scaleValueN
|
|
|
108
117
|
return RxR15Utils.observeHumanoidScaleValueObject(humanoid, scaleValueName):Pipe({
|
|
109
118
|
RxBrioUtils.switchMapBrio(function(scaleValue)
|
|
110
119
|
return RxInstanceUtils.observeProperty(scaleValue, "Value")
|
|
111
|
-
end),
|
|
112
|
-
})
|
|
120
|
+
end) :: any,
|
|
121
|
+
}) :: any
|
|
113
122
|
end
|
|
114
123
|
|
|
115
124
|
function RxR15Utils.observeShoulderRigAttachmentBrio(character: Model, side: R15Side)
|
|
116
|
-
if side == "Left"
|
|
125
|
+
if side == "Left" then
|
|
117
126
|
return RxR15Utils.observeRigAttachmentBrio(character, "UpperTorso", "LeftShoulderRigAttachment")
|
|
118
127
|
elseif side == "Right" then
|
|
119
128
|
return RxR15Utils.observeRigAttachmentBrio(character, "UpperTorso", "RightShoulderRigAttachment")
|
|
@@ -122,4 +131,4 @@ function RxR15Utils.observeShoulderRigAttachmentBrio(character: Model, side: R15
|
|
|
122
131
|
end
|
|
123
132
|
end
|
|
124
133
|
|
|
125
|
-
return RxR15Utils
|
|
134
|
+
return RxR15Utils
|