feat: add delete form inventory

This commit is contained in:
Evan Carroll 2026-01-23 17:42:41 -06:00
parent 6e637a29cd
commit 73f9c95e37
4 changed files with 123 additions and 3 deletions

View file

@ -134,6 +134,12 @@ pub enum ClientMessage {
/// The loose prop ID to unlock.
loose_prop_id: Uuid,
},
/// Permanently delete a prop from inventory (does not drop to scene).
DeleteProp {
/// Inventory item ID to delete.
inventory_item_id: Uuid,
},
}
/// Server-to-client WebSocket messages.
@ -251,6 +257,12 @@ pub enum ServerMessage {
prop_id: Uuid,
},
/// A prop was permanently deleted from inventory.
PropDeleted {
/// ID of the deleted inventory item.
inventory_item_id: Uuid,
},
/// A prop was updated (scale changed) - clients should update their local copy.
PropRefresh {
/// The updated prop with all current values.