elseware/src/entity/item.rs

28 lines
401 B
Rust
Raw Normal View History

2019-12-09 23:11:27 -08:00
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,
}