support aquiring server props and test dropping them

This commit is contained in:
Evan Carroll 2026-01-20 18:33:15 -06:00
parent 3e1afb82c8
commit 7852790a1e
9 changed files with 858 additions and 150 deletions

View file

@ -607,6 +607,20 @@ async fn handle_socket(
}
}
ClientMessage::DropProp { inventory_item_id } => {
// Ensure instance exists for this scene (required for loose_props FK)
// In this system, channel_id = scene_id
if let Err(e) = loose_props::ensure_scene_instance(
&mut *recv_conn,
channel_id,
)
.await
{
tracing::error!(
"[WS] Failed to ensure scene instance: {:?}",
e
);
}
// Get user's current position for random offset
let member_info = channel_members::get_channel_member(
&mut *recv_conn,