@quenty/teleportserviceutils 9.16.0 → 9.16.1-canary.542.7609692.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 +8 -0
- package/package.json +8 -8
- package/src/Server/RxTeleportUtils.lua +14 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [9.16.1-canary.542.7609692.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/teleportserviceutils@9.16.0...@quenty/teleportserviceutils@9.16.1-canary.542.7609692.0) (2025-03-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/teleportserviceutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [9.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/teleportserviceutils@9.15.0...@quenty/teleportserviceutils@9.16.0) (2025-02-18)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/teleportserviceutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/teleportserviceutils",
|
|
3
|
-
"version": "9.16.0",
|
|
3
|
+
"version": "9.16.1-canary.542.7609692.0",
|
|
4
4
|
"description": "Utility functions for teleport srevice",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/brio": "
|
|
30
|
-
"@quenty/loader": "
|
|
31
|
-
"@quenty/maid": "
|
|
32
|
-
"@quenty/promise": "
|
|
33
|
-
"@quenty/rx": "
|
|
34
|
-
"@quenty/valueobject": "
|
|
29
|
+
"@quenty/brio": "14.16.1-canary.542.7609692.0",
|
|
30
|
+
"@quenty/loader": "10.8.0",
|
|
31
|
+
"@quenty/maid": "3.4.0",
|
|
32
|
+
"@quenty/promise": "10.10.1-canary.542.7609692.0",
|
|
33
|
+
"@quenty/rx": "13.16.1-canary.542.7609692.0",
|
|
34
|
+
"@quenty/valueobject": "13.16.1-canary.542.7609692.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@quenty/loader": "file:../loader"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "76096921c6c965e5c4f9c796f97642d16d628c6b"
|
|
43
43
|
}
|
|
@@ -20,7 +20,7 @@ local RxTeleportUtils = {}
|
|
|
20
20
|
@param player Player
|
|
21
21
|
@return Observable<Brio<number>>
|
|
22
22
|
]=]
|
|
23
|
-
function RxTeleportUtils.observeTeleportBrio(player)
|
|
23
|
+
function RxTeleportUtils.observeTeleportBrio(player: Player)
|
|
24
24
|
assert(typeof(player) == "Instance", "Bad player")
|
|
25
25
|
|
|
26
26
|
return Observable.new(function(sub)
|
|
@@ -30,15 +30,22 @@ function RxTeleportUtils.observeTeleportBrio(player)
|
|
|
30
30
|
maid:GiveTask(teleportPlaceId)
|
|
31
31
|
|
|
32
32
|
maid:GiveTask(player.OnTeleport:Connect(function(teleportState, placeId)
|
|
33
|
-
if
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
if
|
|
34
|
+
teleportState == Enum.TeleportState.RequestedFromServer
|
|
35
|
+
or teleportState == Enum.TeleportState.Started
|
|
36
|
+
or teleportState == Enum.TeleportState.WaitingForServer
|
|
37
|
+
or teleportState == Enum.TeleportState.InProgress
|
|
38
|
+
then
|
|
37
39
|
teleportPlaceId.Value = placeId
|
|
38
40
|
elseif teleportState == Enum.TeleportState.Failed then
|
|
39
41
|
teleportPlaceId.Value = nil
|
|
40
42
|
else
|
|
41
|
-
warn(
|
|
43
|
+
warn(
|
|
44
|
+
string.format(
|
|
45
|
+
"[RxTeleportUtils.observeTeleportBrio] - Unknown teleport state %s",
|
|
46
|
+
tostring(teleportState)
|
|
47
|
+
)
|
|
48
|
+
)
|
|
42
49
|
end
|
|
43
50
|
end))
|
|
44
51
|
|
|
@@ -57,4 +64,4 @@ function RxTeleportUtils.observeTeleportBrio(player)
|
|
|
57
64
|
end)
|
|
58
65
|
end
|
|
59
66
|
|
|
60
|
-
return RxTeleportUtils
|
|
67
|
+
return RxTeleportUtils
|