jake
5 years ago
3 changed files with 87 additions and 2 deletions
@ -0,0 +1,27 @@ |
|||
use libpso::item;
|
|||
|
|||
|
|||
#[derive(Clone, Debug)]
|
|||
pub enum ItemLocation {
|
|||
Inventory {
|
|||
character_id: u32,
|
|||
index: usize,
|
|||
},
|
|||
Bank {
|
|||
character_id: u32,
|
|||
slot: usize |
|||
},
|
|||
Floor {
|
|||
// floor: eventually
|
|||
// x y z: ?????
|
|||
},
|
|||
}
|
|||
|
|||
|
|||
|
|||
#[derive(Clone, Debug)]
|
|||
pub struct Item {
|
|||
pub id: u32,
|
|||
pub location: ItemLocation,
|
|||
pub item: item::Item,
|
|||
}
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue