@quenty/characterutils 7.0.0-canary.331.7eefa75.0 → 7.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 +136 -1
- package/LICENSE.md +1 -1
- package/package.json +9 -6
- package/src/Shared/RxCharacterUtils.lua +11 -0
- package/src/Shared/RxRootPartUtils.lua +38 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,142 @@
|
|
|
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
|
-
# [7.0.0
|
|
6
|
+
# [7.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.15.0...@quenty/characterutils@7.0.0) (2023-10-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [6.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.14.0...@quenty/characterutils@6.15.0) (2023-09-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [6.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.13.0...@quenty/characterutils@6.14.0) (2023-09-04)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [6.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.12.0...@quenty/characterutils@6.13.0) (2023-08-23)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* Add RxRootPartUtils.observeHumanoidRootPartBrioFromHumanoid(humanoid) ([1b9ead5](https://github.com/Quenty/NevermoreEngine/commit/1b9ead5a2ebc89c21cbca0af4a0766c1733e0385))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [6.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.11.0...@quenty/characterutils@6.12.0) (2023-07-28)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [6.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.10.0...@quenty/characterutils@6.11.0) (2023-07-23)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* Add RxCharacterUtils.observeCharacter(player) ([2a8240b](https://github.com/Quenty/NevermoreEngine/commit/2a8240b2c57bda9ba42ade2492110e535a187ad5))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# [6.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.9.0...@quenty/characterutils@6.10.0) (2023-07-15)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# [6.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.8.0...@quenty/characterutils@6.9.0) (2023-07-10)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Features
|
|
72
|
+
|
|
73
|
+
* Add RxRootPartUtils.observeHumanoidRootPartBrio(character) ([a7dd72e](https://github.com/Quenty/NevermoreEngine/commit/a7dd72e31018ac4c20f68c4caa0c9b6105325af8))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# [6.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.7.0...@quenty/characterutils@6.8.0) (2023-06-17)
|
|
80
|
+
|
|
81
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
# [6.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.6.0...@quenty/characterutils@6.7.0) (2023-05-26)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* Fix dependencies ([67791a2](https://github.com/Quenty/NevermoreEngine/commit/67791a289c0956bf4947ac81bf792ee56496b3e8))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# [6.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.5.0...@quenty/characterutils@6.6.0) (2023-05-08)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
* CharacterUtils was missing dependancy ([903c319](https://github.com/Quenty/NevermoreEngine/commit/903c31919681399a58399737b2b16910b13a1163))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# [6.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.4.1...@quenty/characterutils@6.5.0) (2023-04-10)
|
|
110
|
+
|
|
111
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
## [6.4.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.4.0...@quenty/characterutils@6.4.1) (2023-04-07)
|
|
118
|
+
|
|
119
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
# [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.3.0...@quenty/characterutils@6.4.0) (2023-03-31)
|
|
126
|
+
|
|
127
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
# [6.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.2.0...@quenty/characterutils@6.3.0) (2023-03-05)
|
|
134
|
+
|
|
135
|
+
**Note:** Version bump only for package @quenty/characterutils
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
# [6.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@6.1.0...@quenty/characterutils@6.2.0) (2023-02-27)
|
|
7
142
|
|
|
8
143
|
**Note:** Version bump only for package @quenty/characterutils
|
|
9
144
|
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/characterutils",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "CharacterUtils",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,13 +25,16 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/
|
|
29
|
-
"@quenty/
|
|
30
|
-
"@quenty/
|
|
31
|
-
"@quenty/
|
|
28
|
+
"@quenty/brio": "^9.0.0",
|
|
29
|
+
"@quenty/deferred": "^2.1.0",
|
|
30
|
+
"@quenty/instanceutils": "^8.0.0",
|
|
31
|
+
"@quenty/loader": "^7.0.0",
|
|
32
|
+
"@quenty/maid": "^2.6.0",
|
|
33
|
+
"@quenty/promise": "^7.0.0",
|
|
34
|
+
"@quenty/rx": "^8.0.0"
|
|
32
35
|
},
|
|
33
36
|
"publishConfig": {
|
|
34
37
|
"access": "public"
|
|
35
38
|
},
|
|
36
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
|
|
37
40
|
}
|
|
@@ -15,6 +15,7 @@ local RxCharacterUtils = {}
|
|
|
15
15
|
|
|
16
16
|
--[=[
|
|
17
17
|
Observe a player's last character.
|
|
18
|
+
|
|
18
19
|
@param player Player
|
|
19
20
|
@return Observable<Brio<Model>>
|
|
20
21
|
]=]
|
|
@@ -26,6 +27,16 @@ function RxCharacterUtils.observeLastCharacterBrio(player: Player)
|
|
|
26
27
|
end)
|
|
27
28
|
end
|
|
28
29
|
|
|
30
|
+
--[=[
|
|
31
|
+
Observes a player's character property
|
|
32
|
+
|
|
33
|
+
@param player Player
|
|
34
|
+
@return Observable<Model>
|
|
35
|
+
]=]
|
|
36
|
+
function RxCharacterUtils.observeCharacter(player)
|
|
37
|
+
return RxInstanceUtils.observeProperty(player, "Character")
|
|
38
|
+
end
|
|
39
|
+
|
|
29
40
|
--[=[
|
|
30
41
|
Observe a player's last humanoid. Note that it may not be alive!
|
|
31
42
|
@param player Player
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
--[=[
|
|
2
|
+
@class RxRootPartUtils
|
|
3
|
+
]=]
|
|
4
|
+
|
|
5
|
+
local require = require(script.Parent.loader).load(script)
|
|
6
|
+
|
|
7
|
+
local RxInstanceUtils = require("RxInstanceUtils")
|
|
8
|
+
local RxBrioUtils = require("RxBrioUtils")
|
|
9
|
+
|
|
10
|
+
local RxRootPartUtils = {}
|
|
11
|
+
|
|
12
|
+
--[=[
|
|
13
|
+
Observes the last humanoid root part of a character
|
|
14
|
+
|
|
15
|
+
@param character Model
|
|
16
|
+
@return Brio<BasePart>
|
|
17
|
+
]=]
|
|
18
|
+
function RxRootPartUtils.observeHumanoidRootPartBrio(character)
|
|
19
|
+
return RxInstanceUtils.observeLastNamedChildBrio(character, "BasePart", "HumanoidRootPart")
|
|
20
|
+
end
|
|
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
|
+
|
|
38
|
+
return RxRootPartUtils
|