// TODO: Commit trait that ItemStateProxy and EntityTransaction implement that .commit requires and acts on upon everything succeeding (like 3 less lines of code!)
// TODO: Commit trait that ItemStateProxy and EntityTransaction implement that .commit requires and acts on upon everything succeeding (like 3 less lines of code!)
@ -65,6 +66,9 @@ pub enum ItemStateError {
#[error("item is not mag food {0}")]
#[error("item is not mag food {0}")]
NotMagFood(ClientItemId),
NotMagFood(ClientItemId),
#[error("item is not sellable")]
ItemNotSellable,
}
}
pubenumFloorType{
pubenumFloorType{
@ -299,6 +303,64 @@ impl InventoryItemDetail {
},
},
}
}
}
}
// TODO: this should probably go somewhere a bit more fundamental like ItemDetail