public EconomyManager(LocalIDManager transactionIDManager, IPlayerLocator pl, IAreaLocator al, CargoSynchronizer cs, ShipManager sm, IDatabaseManager databaseManager, ISlaveIDProvider slaveIDProvider) { _shipManager = sm; _playerLocator = pl; _areaLocator = al; _cargoSynchronizer = cs; _tradeIDManager = transactionIDManager; _databaseManager = databaseManager; _slaveIDProvider = slaveIDProvider; _shipShipTrades = new ConcurrentDictionary <int, ShipShipTrade>(); _shipIDToTradeID = new ConcurrentDictionary <int, int>(); _pendingTradeRequests = new ConcurrentDictionary <int, TradeRequest>(); _tradingPlayerIDs = new HashSet <int>(); }
public LocatorService(IGalaxyRegistrationManager grm, IPlayerLocator pl, IAreaLocator al, IShipLocator sl, IAccountLocator acl, ITeamLocator tl, ITeamManager tm, IMessageManager mm, IObjectLocator <IStructure> structureManager, ISlaveIDProvider slaveIDProvider) { PlayerLocator = pl; ShipLocator = sl; AccountLocator = acl; TeamLocator = tl; TeamManager = tm; AreaLocator = al; MessageManager = mm; RegistrationManager = grm; StructureManager = structureManager; SlaveIDProvider = slaveIDProvider; }