feat: add teleport
This commit is contained in:
parent
226c2e02b5
commit
32e5e42462
11 changed files with 603 additions and 16 deletions
|
|
@ -76,6 +76,12 @@ pub enum ClientMessage {
|
|||
|
||||
/// Request to broadcast avatar appearance to other users.
|
||||
SyncAvatar,
|
||||
|
||||
/// Request to teleport to a different scene.
|
||||
Teleport {
|
||||
/// Scene ID to teleport to.
|
||||
scene_id: Uuid,
|
||||
},
|
||||
}
|
||||
|
||||
/// Server-to-client WebSocket messages.
|
||||
|
|
@ -212,4 +218,12 @@ pub enum ServerMessage {
|
|||
/// Updated avatar render data.
|
||||
avatar: AvatarRenderData,
|
||||
},
|
||||
|
||||
/// Teleport approved - client should disconnect and reconnect to new scene.
|
||||
TeleportApproved {
|
||||
/// Scene ID to navigate to.
|
||||
scene_id: Uuid,
|
||||
/// Scene slug for URL.
|
||||
scene_slug: String,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue