@quenty/r15utils 8.0.0-canary.331.7eefa75.0 → 8.0.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 +132 -1
- package/LICENSE.md +1 -1
- package/package.json +5 -5
- package/src/Shared/R15Utils.lua +11 -0
- package/src/Shared/RxR15Utils.lua +28 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,138 @@
|
|
|
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
|
-
# [8.0.0
|
|
6
|
+
# [8.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.22.0...@quenty/r15utils@8.0.0) (2023-10-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add helper methods to RxR15Utils ([8b60f4c](https://github.com/Quenty/NevermoreEngine/commit/8b60f4c1c1e3c74efd506fdef1ee98047b5aaa3d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [7.22.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.21.0...@quenty/r15utils@7.22.0) (2023-09-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [7.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.20.0...@quenty/r15utils@7.21.0) (2023-09-04)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [7.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.19.0...@quenty/r15utils@7.20.0) (2023-08-23)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [7.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.18.0...@quenty/r15utils@7.19.0) (2023-07-28)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [7.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.17.0...@quenty/r15utils@7.18.0) (2023-07-15)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# [7.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.16.0...@quenty/r15utils@7.17.0) (2023-07-10)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# [7.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.15.0...@quenty/r15utils@7.16.0) (2023-06-17)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# [7.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.14.0...@quenty/r15utils@7.15.0) (2023-05-26)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# [7.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.13.0...@quenty/r15utils@7.14.0) (2023-05-08)
|
|
82
|
+
|
|
83
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
# [7.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.12.1...@quenty/r15utils@7.13.0) (2023-04-10)
|
|
90
|
+
|
|
91
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## [7.12.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.12.0...@quenty/r15utils@7.12.1) (2023-04-07)
|
|
98
|
+
|
|
99
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# [7.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.11.0...@quenty/r15utils@7.12.0) (2023-04-06)
|
|
106
|
+
|
|
107
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# [7.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.10.0...@quenty/r15utils@7.11.0) (2023-04-03)
|
|
114
|
+
|
|
115
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# [7.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.9.0...@quenty/r15utils@7.10.0) (2023-03-31)
|
|
122
|
+
|
|
123
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# [7.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.8.0...@quenty/r15utils@7.9.0) (2023-03-05)
|
|
130
|
+
|
|
131
|
+
**Note:** Version bump only for package @quenty/r15utils
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
# [7.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/r15utils@7.7.0...@quenty/r15utils@7.8.0) (2023-02-27)
|
|
7
138
|
|
|
8
139
|
**Note:** Version bump only for package @quenty/r15utils
|
|
9
140
|
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/r15utils",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.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": "9.0.0
|
|
29
|
-
"@quenty/instanceutils": "8.0.0
|
|
30
|
-
"@quenty/loader": "
|
|
28
|
+
"@quenty/brio": "^9.0.0",
|
|
29
|
+
"@quenty/instanceutils": "^8.0.0",
|
|
30
|
+
"@quenty/loader": "^7.0.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
|
|
36
36
|
}
|
package/src/Shared/R15Utils.lua
CHANGED
|
@@ -297,6 +297,17 @@ function R15Utils.getWristToGripLength(character, side)
|
|
|
297
297
|
end
|
|
298
298
|
end
|
|
299
299
|
|
|
300
|
+
function R15Utils.getHumanoidScaleProperty(humanoid, scaleValueName)
|
|
301
|
+
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
302
|
+
|
|
303
|
+
local scaleValue = humanoid:FindFirstChild(scaleValueName)
|
|
304
|
+
if scaleValue then
|
|
305
|
+
return scaleValue.Value
|
|
306
|
+
else
|
|
307
|
+
return nil
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
300
311
|
--[=[
|
|
301
312
|
Computes the length of an arm for a given character
|
|
302
313
|
@param character Model
|
|
@@ -64,4 +64,32 @@ function RxR15Utils.observeCharacterPartBrio(character, partName)
|
|
|
64
64
|
return RxInstanceUtils.observeLastNamedChildBrio(character, "BasePart", partName)
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
--[=[
|
|
68
|
+
Observes a rig motor as a brio
|
|
69
|
+
@param character Model
|
|
70
|
+
@return Observable<Brio<Humanoid>>
|
|
71
|
+
]=]
|
|
72
|
+
function RxR15Utils.observeHumanoidBrio(character)
|
|
73
|
+
assert(typeof(character) == "Instance", "Bad character")
|
|
74
|
+
|
|
75
|
+
return RxInstanceUtils.observeLastNamedChildBrio(character, "Humanoid", "Humanoid")
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
function RxR15Utils.observeHumanoidScaleValueObject(humanoid, scaleValueName)
|
|
79
|
+
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
80
|
+
|
|
81
|
+
return RxInstanceUtils.observeLastNamedChildBrio(humanoid, "NumberValue", scaleValueName)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
function RxR15Utils.observeHumanoidScaleProperty(humanoid, scaleValueName)
|
|
85
|
+
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
86
|
+
|
|
87
|
+
return RxR15Utils.observeHumanoidScaleValueObject(humanoid, scaleValueName):Pipe({
|
|
88
|
+
RxBrioUtils.switchMapBrio(function(scaleValue)
|
|
89
|
+
return RxInstanceUtils.observeProperty(scaleValue, "Value")
|
|
90
|
+
end)
|
|
91
|
+
})
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
|
|
67
95
|
return RxR15Utils
|