@quenty/seatutils 2.0.0-canary.331.7eefa75.0 → 2.0.0-canary.367.e9fdcbc.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 +97 -1
- package/LICENSE.md +1 -1
- package/package.json +8 -7
- package/src/Shared/RxSeatUtils.lua +14 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,103 @@
|
|
|
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
|
-
# [2.0.0-canary.
|
|
6
|
+
# [2.0.0-canary.367.e9fdcbc.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.11.0...@quenty/seatutils@2.0.0-canary.367.e9fdcbc.0) (2023-06-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.10.0...@quenty/seatutils@1.11.0) (2023-05-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [1.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.9.0...@quenty/seatutils@1.10.0) (2023-05-08)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [1.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.8.0...@quenty/seatutils@1.9.0) (2023-04-24)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* Fix missing dependencies ([3fbd817](https://github.com/Quenty/NevermoreEngine/commit/3fbd817b1fee45bda1b963b61a6ed22b0db12b82))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* Add RxSeatUtils.observeOccupantBrio() ([c8cf2d9](https://github.com/Quenty/NevermoreEngine/commit/c8cf2d9caf971c5902419ba19bb13504dcd94fac))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [1.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.7.1...@quenty/seatutils@1.8.0) (2023-04-10)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [1.7.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.7.0...@quenty/seatutils@1.7.1) (2023-04-07)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# [1.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.6.0...@quenty/seatutils@1.7.0) (2023-04-06)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# [1.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.5.0...@quenty/seatutils@1.6.0) (2023-04-03)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# [1.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.4.0...@quenty/seatutils@1.5.0) (2023-03-31)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# [1.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.3.0...@quenty/seatutils@1.4.0) (2023-03-31)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# [1.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.2.0...@quenty/seatutils@1.3.0) (2023-03-05)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @quenty/seatutils
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# [1.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/seatutils@1.1.0...@quenty/seatutils@1.2.0) (2023-02-27)
|
|
7
103
|
|
|
8
104
|
**Note:** Version bump only for package @quenty/seatutils
|
|
9
105
|
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/seatutils",
|
|
3
|
-
"version": "2.0.0-canary.
|
|
3
|
+
"version": "2.0.0-canary.367.e9fdcbc.0",
|
|
4
4
|
"description": "Holds utilities to work with Roblox seats",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,14 +25,15 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "
|
|
29
|
-
"@quenty/
|
|
30
|
-
"@quenty/
|
|
31
|
-
"@quenty/
|
|
32
|
-
"@quenty/
|
|
28
|
+
"@quenty/brio": "8.13.0",
|
|
29
|
+
"@quenty/characterutils": "6.7.0",
|
|
30
|
+
"@quenty/instanceutils": "7.14.0",
|
|
31
|
+
"@quenty/loader": "6.2.1",
|
|
32
|
+
"@quenty/rx": "7.11.0",
|
|
33
|
+
"@quenty/statestack": "9.0.0-canary.367.e9fdcbc.0"
|
|
33
34
|
},
|
|
34
35
|
"publishConfig": {
|
|
35
36
|
"access": "public"
|
|
36
37
|
},
|
|
37
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "e9fdcbc6ea1d46e068bf42a08b833099e9005259"
|
|
38
39
|
}
|
|
@@ -16,11 +16,9 @@ local RxSeatUtils = {}
|
|
|
16
16
|
Defines occupant as the humanoid attached to the seat.
|
|
17
17
|
|
|
18
18
|
@param seat Seat | VehicleSeat
|
|
19
|
-
@return Observable<Humanoid
|
|
19
|
+
@return Observable<Brio<Humanoid>>
|
|
20
20
|
]=]
|
|
21
|
-
function RxSeatUtils.
|
|
22
|
-
assert(typeof(seat) == "Instance", "Bad seat")
|
|
23
|
-
|
|
21
|
+
function RxSeatUtils.observeOccupantBrio(seat)
|
|
24
22
|
return RxInstanceUtils.observeChildrenOfNameBrio(seat, "Weld", "SeatWeld"):Pipe({
|
|
25
23
|
RxBrioUtils.flatMapBrio(function(weld)
|
|
26
24
|
return RxBrioUtils.flatCombineLatest({
|
|
@@ -52,7 +50,19 @@ function RxSeatUtils.observeOccupant(seat)
|
|
|
52
50
|
RxBrioUtils.map(function(state)
|
|
53
51
|
return state.humanoid
|
|
54
52
|
end);
|
|
53
|
+
})
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
--[=[
|
|
57
|
+
Defines occupant as the humanoid attached to the seat.
|
|
58
|
+
|
|
59
|
+
@param seat Seat | VehicleSeat
|
|
60
|
+
@return Observable<Humanoid | nil>
|
|
61
|
+
]=]
|
|
62
|
+
function RxSeatUtils.observeOccupant(seat)
|
|
63
|
+
assert(typeof(seat) == "Instance", "Bad seat")
|
|
55
64
|
|
|
65
|
+
return RxSeatUtils.observeOccupantBrio(seat):Pipe({
|
|
56
66
|
-- Switch to top
|
|
57
67
|
RxStateStackUtils.topOfStack();
|
|
58
68
|
Rx.distinct();
|