|
|
@ -78,6 +78,7 @@ pub struct InMemoryGateway { |
|
|
|
weapon_modifiers: Arc<Mutex<BTreeMap<ItemEntityId, Vec<weapon::WeaponModifier>>>>,
|
|
|
|
unit_modifiers: Arc<Mutex<BTreeMap<ItemEntityId, Vec<unit::UnitModifier>>>>,
|
|
|
|
trades: Arc<Mutex<Vec<TradeEntity>>>,
|
|
|
|
unit_modifiers: Arc<Mutex<BTreeMap<ItemEntityId, Vec<unit::UnitModifier>>>>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for InMemoryGateway {
|
|
|
@ -96,6 +97,7 @@ impl Default for InMemoryGateway { |
|
|
|
weapon_modifiers: Arc::new(Mutex::new(BTreeMap::new())),
|
|
|
|
unit_modifiers: Arc::new(Mutex::new(BTreeMap::new())),
|
|
|
|
trades: Arc::new(Mutex::new(Vec::new())),
|
|
|
|
unit_modifiers: Arc::new(Mutex::new(BTreeMap::new())),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|