|
@ -15,7 +15,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, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
pub enum ItemLocation {
|
|
|
pub enum ItemLocation {
|
|
|
Inventory {
|
|
|
Inventory {
|
|
|
character_id: CharacterEntityId,
|
|
|
character_id: CharacterEntityId,
|
|
@ -96,13 +96,13 @@ impl ItemDetail { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
pub struct NewItemEntity {
|
|
|
pub struct NewItemEntity {
|
|
|
pub location: ItemLocation,
|
|
|
pub location: ItemLocation,
|
|
|
pub item: ItemDetail,
|
|
|
pub item: ItemDetail,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
pub struct ItemEntity {
|
|
|
pub struct ItemEntity {
|
|
|
pub id: ItemEntityId,
|
|
|
pub id: ItemEntityId,
|
|
|
pub location: ItemLocation,
|
|
|
pub location: ItemLocation,
|
|
|