feat: add delete form inventory
This commit is contained in:
parent
6e637a29cd
commit
73f9c95e37
4 changed files with 123 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue