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])
 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)])