コード例 #1
0
ファイル: parsers.py プロジェクト: mahmoudimus/WOT-0.9.20.0
 def _handleCondition(self, name, data, uniqueName, group):
     if name == 'premium':
         return conditions.PremiumVehicle(uniqueName, data)
     if name == 'hasReceivedMultipliedXP':
         return conditions.XPMultipliedVehicle(uniqueName, data)
     if name == 'vehicleDescr':
         return conditions.VehicleDescr(uniqueName, data)
コード例 #2
0
 def _handleCondition(self, name, data, uniqueName, group):
     if name == 'premium':
         return conditions.PremiumVehicle(uniqueName, data)
     if name == 'hasReceivedMultipliedXP':
         return conditions.XPMultipliedVehicle(uniqueName, data)
     if name == 'vehicleDescr':
         return conditions.VehicleDescr(uniqueName, data)
     if name == 'installedModules':
         return conditions.InstalledModulesOnVehicle(uniqueName, data)
     return conditions.CorrespondedCamouflage(
         uniqueName, data) if name == 'correspondedCamouflage' else None