feat: add teleport

This commit is contained in:
Evan Carroll 2026-01-19 11:48:12 -06:00
parent 226c2e02b5
commit 32e5e42462
11 changed files with 603 additions and 16 deletions

View file

@ -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,
},
}