|
@ -16,7 +16,7 @@ pub struct ItemId(u32); |
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
|
pub struct BankName(String);
|
|
|
pub struct BankName(String);
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq)]
|
|
|
pub enum ItemLocation {
|
|
|
pub enum ItemLocation {
|
|
|
Inventory {
|
|
|
Inventory {
|
|
|
character_id: CharacterEntityId,
|
|
|
character_id: CharacterEntityId,
|
|
@ -106,7 +106,7 @@ pub struct NewItemEntity { |
|
|
pub item: ItemDetail,
|
|
|
pub item: ItemDetail,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq)]
|
|
|
pub struct ItemEntity {
|
|
|
pub struct ItemEntity {
|
|
|
pub id: ItemEntityId,
|
|
|
pub id: ItemEntityId,
|
|
|
pub location: ItemLocation,
|
|
|
pub location: ItemLocation,
|
|
|