public TacticalActUsageService( ITacticalActUsageRandomSource actUsageRandomSource, IActUsageHandlerSelector actUsageHandlerSelector, IEquipmentDurableService equipmentDurableService) : this(actUsageRandomSource, actUsageHandlerSelector) { EquipmentDurableService = equipmentDurableService; }
public Sector(ISectorMap map, IActorManager actorManager, IStaticObjectManager staticObjectManager, IDropResolver dropResolver, ISchemeService schemeService, IEquipmentDurableService equipmentDurableService) { ActorManager = actorManager ?? throw new ArgumentNullException(nameof(actorManager)); StaticObjectManager = staticObjectManager ?? throw new ArgumentNullException(nameof(staticObjectManager)); _dropResolver = dropResolver ?? throw new ArgumentNullException(nameof(dropResolver)); _schemeService = schemeService ?? throw new ArgumentNullException(nameof(schemeService)); _equipmentDurableService = equipmentDurableService ?? throw new ArgumentNullException(nameof(equipmentDurableService)); _diseases = new List <IDisease>(); ActorManager.Added += ActorManager_Added; ActorManager.Removed += ActorManager_Remove; StaticObjectManager.Added += StaticObjectManager_Added; StaticObjectManager.Removed += StaticObjectManager_Remove; Map = map ?? throw new ArgumentException("Не передана карта сектора.", nameof(map)); PatrolRoutes = new Dictionary <IActor, IPatrolRoute>(); }
public SectorFactory(IDropResolver dropResolver, ISchemeService schemeService, IEquipmentDurableService equipmentDurableService) { _dropResolver = dropResolver ?? throw new ArgumentNullException(nameof(dropResolver)); _schemeService = schemeService ?? throw new ArgumentNullException(nameof(schemeService)); _equipmentDurableService = equipmentDurableService; }
public TacticalActUsageService( ITacticalActUsageRandomSource actUsageRandomSource, IActUsageHandlerSelector actUsageHandlerSelector, IEquipmentDurableService equipmentDurableService) : this(actUsageRandomSource, actUsageHandlerSelector) { EquipmentDurableService = equipmentDurableService ?? throw new ArgumentNullException(nameof(equipmentDurableService)); }
public TestEmptySectorGenerator( IDropResolver dropResolver, ISchemeService schemeService, IMapFactory mapFactory, IEquipmentDurableService equipmentDurableService) { _dropResolver = dropResolver ?? throw new System.ArgumentNullException(nameof(dropResolver)); _schemeService = schemeService ?? throw new System.ArgumentNullException(nameof(schemeService)); _mapFactory = mapFactory ?? throw new System.ArgumentNullException(nameof(mapFactory)); _equipmentDurableService = equipmentDurableService ?? throw new System.ArgumentNullException(nameof(equipmentDurableService)); }
public SectorFactory(IActorManager actorManager, IPropContainerManager propContainerManager, IDropResolver dropResolver, ISchemeService schemeService, IEquipmentDurableService equipmentDurableService) { _actorManager = actorManager ?? throw new ArgumentNullException(nameof(actorManager)); _propContainerManager = propContainerManager ?? throw new ArgumentNullException(nameof(propContainerManager)); _dropResolver = dropResolver ?? throw new ArgumentNullException(nameof(dropResolver)); _schemeService = schemeService ?? throw new ArgumentNullException(nameof(schemeService)); _equipmentDurableService = equipmentDurableService; }
public TestEmptySectorGenerator(IActorManager actorManager, IPropContainerManager propContainerManager, IDropResolver dropResolver, ISchemeService schemeService, IMapFactory mapFactory, IEquipmentDurableService equipmentDurableService) { _actorManager = actorManager; _propContainerManager = propContainerManager; _dropResolver = dropResolver; _schemeService = schemeService; _mapFactory = mapFactory; _equipmentDurableService = equipmentDurableService; }
public Sector(ISectorMap map, IActorManager actorManager, IPropContainerManager propContainerManager, IDropResolver dropResolver, ISchemeService schemeService, IEquipmentDurableService equipmentDurableService) { _actorManager = actorManager; _propContainerManager = propContainerManager; _dropResolver = dropResolver; _schemeService = schemeService; _equipmentDurableService = equipmentDurableService; _actorManager.Added += ActorManager_Added; _propContainerManager.Added += PropContainerManager_Added; _propContainerManager.Removed += PropContainerManager_Remove; Map = map ?? throw new ArgumentException("Не передана карта сектора.", nameof(map)); PatrolRoutes = new Dictionary <IActor, IPatrolRoute>(); }