@quenty/playerutils 8.20.0 → 8.21.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 +13 -0
- package/package.json +3 -2
- package/src/Shared/RxPlayerUtils.lua +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerutils@8.20.0...@quenty/playerutils@8.21.0) (2025-11-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix misc things ([6d071f6](https://github.com/Quenty/NevermoreEngine/commit/6d071f61b1f49baa72bf227f37e67d31cfc839a9))
|
|
12
|
+
* fix typechecking ([a565916](https://github.com/Quenty/NevermoreEngine/commit/a565916e05556d37646bbd38587239460ad49719))
|
|
13
|
+
* Format code ([2d60e0b](https://github.com/Quenty/NevermoreEngine/commit/2d60e0b98412ce71474c60782745e1ba849c4205))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
# [8.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerutils@8.19.0...@quenty/playerutils@8.20.0) (2025-09-26)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @quenty/playerutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/playerutils",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.21.0",
|
|
4
4
|
"description": "Player utility functions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,11 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@quenty/brio": "^14.20.0",
|
|
32
|
+
"@quenty/characterutils": "^12.22.0",
|
|
32
33
|
"@quenty/instanceutils": "^13.20.0",
|
|
33
34
|
"@quenty/loader": "^10.9.0",
|
|
34
35
|
"@quenty/maid": "^3.5.0",
|
|
35
36
|
"@quenty/promise": "^10.12.0",
|
|
36
37
|
"@quenty/rx": "^13.20.0"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "2ac8824cc65912cc0b3323b19fa79e2e05986dc6"
|
|
39
40
|
}
|
|
@@ -12,6 +12,8 @@ local Brio = require("Brio")
|
|
|
12
12
|
local Maid = require("Maid")
|
|
13
13
|
local Observable = require("Observable")
|
|
14
14
|
local Rx = require("Rx")
|
|
15
|
+
local RxBrioUtils = require("RxBrioUtils")
|
|
16
|
+
local RxCharacterUtils = require("RxCharacterUtils")
|
|
15
17
|
local RxInstanceUtils = require("RxInstanceUtils")
|
|
16
18
|
|
|
17
19
|
local RxPlayerUtils = {}
|
|
@@ -52,6 +54,28 @@ function RxPlayerUtils.observePlayersBrio(predicate: Rx.Predicate<Player>?): Obs
|
|
|
52
54
|
end) :: any
|
|
53
55
|
end
|
|
54
56
|
|
|
57
|
+
--[=[
|
|
58
|
+
Observes the character model for the player
|
|
59
|
+
]=]
|
|
60
|
+
function RxPlayerUtils.observeCharactersBrio(): Observable.Observable<Brio.Brio<Model>>
|
|
61
|
+
return RxPlayerUtils.observePlayersBrio():Pipe({
|
|
62
|
+
RxBrioUtils.flatMapBrio(function(player)
|
|
63
|
+
return RxCharacterUtils.observeLastCharacterBrio(player)
|
|
64
|
+
end) :: any,
|
|
65
|
+
}) :: any
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
--[=[
|
|
69
|
+
Observes the character model for the player
|
|
70
|
+
]=]
|
|
71
|
+
function RxPlayerUtils.observeHumanoidsBrio(): Observable.Observable<Brio.Brio<Humanoid>>
|
|
72
|
+
return RxPlayerUtils.observePlayersBrio():Pipe({
|
|
73
|
+
RxBrioUtils.flatMapBrio(function(player)
|
|
74
|
+
return RxCharacterUtils.observeLastHumanoidBrio(player)
|
|
75
|
+
end) :: any,
|
|
76
|
+
}) :: any
|
|
77
|
+
end
|
|
78
|
+
|
|
55
79
|
--[=[
|
|
56
80
|
Observes the current local player
|
|
57
81
|
|