public TacticalActUsageService(
     ITacticalActUsageRandomSource actUsageRandomSource,
     IActUsageHandlerSelector actUsageHandlerSelector,
     IEquipmentDurableService equipmentDurableService) : this(actUsageRandomSource, actUsageHandlerSelector)
 {
     EquipmentDurableService = equipmentDurableService;
 }
Beispiel #2
0
        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>();
        }
Beispiel #3
0
 public SectorFactory(IDropResolver dropResolver,
                      ISchemeService schemeService,
                      IEquipmentDurableService equipmentDurableService)
 {
     _dropResolver            = dropResolver ?? throw new ArgumentNullException(nameof(dropResolver));
     _schemeService           = schemeService ?? throw new ArgumentNullException(nameof(schemeService));
     _equipmentDurableService = equipmentDurableService;
 }
Beispiel #4
0
 public TacticalActUsageService(
     ITacticalActUsageRandomSource actUsageRandomSource,
     IActUsageHandlerSelector actUsageHandlerSelector,
     IEquipmentDurableService equipmentDurableService) : this(actUsageRandomSource, actUsageHandlerSelector)
 {
     EquipmentDurableService = equipmentDurableService ??
                               throw new ArgumentNullException(nameof(equipmentDurableService));
 }
Beispiel #5
0
 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;
 }
Beispiel #8
0
        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>();
        }