def _createSlotsValidator(self, entity):
     baseValidator = super(FunRandomActionsValidator,
                           self)._createSlotsValidator(entity)
     return ActionsValidatorComposite(
         entity,
         validators=[baseValidator,
                     BalancedSquadSlotsValidator(entity)])
Пример #2
0
 def _createSlotsValidator(self, entity):
     baseValidator = super(BattleRoyaleSquadActionsValidator,
                           self)._createSlotsValidator(entity)
     return ActionsValidatorComposite(
         entity,
         validators=[baseValidator,
                     BattleRoyalSquadSlotsValidator(entity)])
Пример #3
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(SPGForbiddenSquadActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity,
         validators=[
             SPGForbiddenSquadVehiclesValidator(entity), baseValidator
         ])
Пример #4
0
 def _createVehiclesValidator(self, entity):
     return ActionsValidatorComposite(
         entity,
         validators=[
             BalancedSquadVehiclesValidator(entity),
             _MapboxVehicleValidator(entity),
             SPGForbiddenSquadVehiclesValidator(entity)
         ])
Пример #5
0
 def _createVehiclesValidator(self, entity):
     validators = [
         _BattleRoyaleVehiclesValidator(entity),
         _UnitSlotsValidator(entity),
         _BattleRoyaleValidator(entity)
     ]
     if not IS_DEVELOPMENT:
         validators.append(_UnitSlotsValidator(entity))
     return ActionsValidatorComposite(entity, validators=validators)
Пример #6
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(BalancedSquadActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity,
         validators=[BalancedSquadVehiclesValidator(entity), baseValidator])
Пример #7
0
 def _createLevelsValidator(self, entity):
     baseValidator = super(ESportActionsValidator, self)._createLevelsValidator(entity)
     return ActionsValidatorComposite(entity, validators=[ESportLevelsValidator(entity), baseValidator])
Пример #8
0
 def _createStateValidator(self, entity):
     baseValidator = super(ClubsActionsValidator,
                           self)._createStateValidator(entity)
     return ActionsValidatorComposite(
         entity, [baseValidator, ClubStateValidator(entity)])
Пример #9
0
 def _createStateValidator(self, entity):
     baseValidator = super(RankedActionsValidator,
                           self)._createStateValidator(entity)
     return ActionsValidatorComposite(
         entity,
         [baseValidator, RankedPrimeTimeValidator(entity)])
 def _createStateValidator(self, entity):
     baseValidator = super(FunRandomActionsValidator, self)._createStateValidator(entity)
     return ActionsValidatorComposite(entity, [baseValidator, FunRandomPrimeTimeValidator(entity)])
Пример #11
0
 def _createActionsValidator(self):
     validators = [
         BootcampActionsValidator(self),
         super(BootcampEntity, self)._createActionsValidator()
     ]
     return ActionsValidatorComposite(self, validators)
Пример #12
0
 def _createSlotsValidator(self, entity):
     baseValidator = super(EpicSquadActionsValidator, self)._createSlotsValidator(entity)
     return ActionsValidatorComposite(entity, validators=[baseValidator, EpicSquadSlotsValidator(entity)])
Пример #13
0
 def _createPlayerValidator(self, entity):
     baseValidator = super(SortieActionsValidator,
                           self)._createPlayerValidator(entity)
     return ActionsValidatorComposite(
         entity, validators=[SortiePlayerValidator(entity), baseValidator])
Пример #14
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(EpicActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity, [baseValidator, self.__epicVehicleValidator])
Пример #15
0
 def _createVehiclesValidator(self, entity):
     return ActionsValidatorComposite(entity, validators=[_BattleRoyaleVehiclesValidator(entity), _UnitSlotsValidator(entity), _BattleRoyaleValidator(entity)])
 def _createVehiclesValidator(self, entity):
     baseValidator = super(MapboxActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity, [MapboxVehicleValidator(entity), baseValidator])
 def _createStateValidator(self, entity):
     baseValidator = super(MapboxActionsValidator,
                           self)._createStateValidator(entity)
     return ActionsValidatorComposite(
         entity,
         [baseValidator, MapboxStateValidator(entity)])
Пример #18
0
 def _createSlotsValidator(self, entity):
     baseValidator = super(MapboxSquadActionsValidator,
                           self)._createSlotsValidator(entity)
     return ActionsValidatorComposite(
         entity, validators=[baseValidator,
                             _UnitSlotsValidator(entity)])
 def _createVehiclesValidator(self, entity):
     baseValidator = super(FunRandomActionsValidator, self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(entity, [FunRandomVehicleValidator(entity), baseValidator])
Пример #20
0
 def _createStateValidator(self, entity):
     baseValidator = super(BattleRoyaleActionsValidator,
                           self)._createStateValidator(entity)
     return ActionsValidatorComposite(
         entity,
         [baseValidator, BattleRoyaleValidator(entity)])
Пример #21
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(RankedActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity,
         [baseValidator, RankedVehicleValidator(entity)])
Пример #22
0
 def _createStateValidator(self, entity):
     return ActionsValidatorComposite(entity, [_BattleRoyaleTournamentInQueueValidator(entity)])
Пример #23
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(SandboxActionsValidator, self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(entity, [baseValidator, SandboxVehicleValidator(entity)])
 def _createStateValidator(self, entity):
     baseValidator = super(BootcampActionsValidator, self)._createStateValidator(entity)
     return ActionsValidatorComposite(entity, [baseValidator, BootcampStateValidator(entity)])