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