@quenty/characterutils 6.12.1-canary.405.6fa018e.0 → 6.13.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 +5 -2
- package/package.json +9 -9
- package/src/Shared/RxRootPartUtils.lua +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +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
|
+
# [6.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.12.0...@quenty/characterutils@6.13.0) (2023-08-23)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add RxRootPartUtils.observeHumanoidRootPartBrioFromHumanoid(humanoid) ([1b9ead5](https://github.com/Quenty/NevermoreEngine/commit/1b9ead5a2ebc89c21cbca0af4a0766c1733e0385))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/characterutils",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
4
4
|
"description": "CharacterUtils",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "8.
|
|
29
|
-
"@quenty/deferred": "2.1.0",
|
|
30
|
-
"@quenty/instanceutils": "7.
|
|
31
|
-
"@quenty/loader": "6.
|
|
32
|
-
"@quenty/maid": "2.
|
|
33
|
-
"@quenty/promise": "6.
|
|
34
|
-
"@quenty/rx": "7.
|
|
28
|
+
"@quenty/brio": "^8.17.0",
|
|
29
|
+
"@quenty/deferred": "^2.1.0",
|
|
30
|
+
"@quenty/instanceutils": "^7.19.0",
|
|
31
|
+
"@quenty/loader": "^6.3.0",
|
|
32
|
+
"@quenty/maid": "^2.6.0",
|
|
33
|
+
"@quenty/promise": "^6.8.0",
|
|
34
|
+
"@quenty/rx": "^7.15.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3b7e47e2180964b6b0b156d07814810e063ef7ed"
|
|
40
40
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
7
|
local RxInstanceUtils = require("RxInstanceUtils")
|
|
8
|
+
local RxBrioUtils = require("RxBrioUtils")
|
|
8
9
|
|
|
9
10
|
local RxRootPartUtils = {}
|
|
10
11
|
|
|
@@ -18,4 +19,20 @@ function RxRootPartUtils.observeHumanoidRootPartBrio(character)
|
|
|
18
19
|
return RxInstanceUtils.observeLastNamedChildBrio(character, "BasePart", "HumanoidRootPart")
|
|
19
20
|
end
|
|
20
21
|
|
|
22
|
+
--[=[
|
|
23
|
+
Observes the last humanoid root part of a character
|
|
24
|
+
|
|
25
|
+
@param humanoid Humanoid
|
|
26
|
+
@return Brio<BasePart>
|
|
27
|
+
]=]
|
|
28
|
+
function RxRootPartUtils.observeHumanoidRootPartBrioFromHumanoid(humanoid)
|
|
29
|
+
return RxInstanceUtils.observePropertyBrio(humanoid, "Parent", function(character)
|
|
30
|
+
return character ~= nil
|
|
31
|
+
end):Pipe({
|
|
32
|
+
RxBrioUtils.switchMapBrio(function(character)
|
|
33
|
+
return RxRootPartUtils.observeHumanoidRootPartBrio(character)
|
|
34
|
+
end)
|
|
35
|
+
})
|
|
36
|
+
end
|
|
37
|
+
|
|
21
38
|
return RxRootPartUtils
|