def _getPluginsList(self): """ Gets plugins collection :return: <tuple(ProcessorPlugin, ...)> """ return (plugins.MoneyValidator(self.price), plugins.VehicleFreeLimitConfirmator(self.item, self.crewType))
def _getPluginsList(self): return (proc_plugs.MoneyValidator(self.price), proc_plugs.VehicleSlotsConfirmator(self.showNotEnoughSlotMsg and not self.buySlot), proc_plugs.VehicleFreeLimitConfirmator(self.item, self.crewType), proc_plugs.CollectibleVehiclesValidator(self.item.intCD))
def __init__(self, vehicle, buySlot, buyShell = False, crewType = -1): self.price = self.__sumBuyPrice(vehicle, buyShell, crewType) super(VehicleBuyer, self).__init__(vehicle, (plugins.VehicleValidator(vehicle, False, prop={'isBroken': True, 'isLocked': True}), plugins.MoneyValidator(self.price), plugins.VehicleSlotsConfirmator(not buySlot), plugins.VehicleFreeLimitConfirmator(vehicle, crewType))) self.buyShell = buyShell self.buyCrew = crewType != -1 self.crewType = crewType self.vehicle = vehicle
def _getPluginsList(self): return (proc_plugs.MoneyValidator(self.price), proc_plugs.VehicleFreeLimitConfirmator(self.item, self.crewType))
def _getPluginsList(self): return (plugins.MoneyValidator(self.price), plugins.VehicleSlotsConfirmator(not self.buySlot), plugins.VehicleFreeLimitConfirmator(self.vehicle, self.crewType))