|
|
@ -58,16 +58,16 @@ pub enum ItemManagerError { |
|
|
|
}
|
|
|
|
|
|
|
|
pub struct ItemManager {
|
|
|
|
id_counter: u32,
|
|
|
|
pub(super) id_counter: u32,
|
|
|
|
|
|
|
|
character_inventory: HashMap<CharacterEntityId, CharacterInventory>,
|
|
|
|
pub(self) character_inventory: HashMap<CharacterEntityId, CharacterInventory>,
|
|
|
|
//character_bank: HashMap<CharacterEntityId, BTreeMap<BankName, CharacterBank>>,
|
|
|
|
character_bank: HashMap<CharacterEntityId, CharacterBank>,
|
|
|
|
character_floor: HashMap<CharacterEntityId, RoomFloorItems>,
|
|
|
|
pub(self) character_bank: HashMap<CharacterEntityId, CharacterBank>,
|
|
|
|
pub(self) character_floor: HashMap<CharacterEntityId, RoomFloorItems>,
|
|
|
|
|
|
|
|
character_room: HashMap<CharacterEntityId, RoomId>,
|
|
|
|
room_floor: HashMap<RoomId, RoomFloorItems>,
|
|
|
|
room_item_id_counter: HashMap<RoomId, Box<dyn FnMut() -> ClientItemId + Send>>,
|
|
|
|
pub(self) character_room: HashMap<CharacterEntityId, RoomId>,
|
|
|
|
pub(self) room_floor: HashMap<RoomId, RoomFloorItems>,
|
|
|
|
pub(self) room_item_id_counter: HashMap<RoomId, Box<dyn FnMut() -> ClientItemId + Send>>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for ItemManager {
|
|
|
|