コード例 #1
0
ファイル: vehicle.py プロジェクト: webiumsk/WOT0.9.10
 def hasLockMode(self):
     isBS = prb_control.isBattleSession()
     if isBS:
         isBSVehicleLockMode = bool(prb_control.getPrebattleSettings()[PREBATTLE_SETTING_NAME.VEHICLE_LOCK_MODE])
         if isBSVehicleLockMode and self.clanLock > 0:
             return True
     return False
コード例 #2
0
 def hasLockMode(self):
     isBS = prb_control.isBattleSession()
     if isBS:
         isBSVehicleLockMode = bool(prb_control.getPrebattleSettings()[PREBATTLE_SETTING_NAME.VEHICLE_LOCK_MODE])
         if isBSVehicleLockMode and self.clanLock > 0:
             return True
     return False
コード例 #3
0
 def doAction(self, action, dispatcher = None):
     if isBattleSession():
         events_dispatcher.loadBattleSessionWindow(getPrebattleType())
     else:
         events_dispatcher.loadBattleSessionList()
     return True
コード例 #4
0
 def doAction(self, action, dispatcher=None):
     if isBattleSession():
         events_dispatcher.loadBattleSessionWindow(getPrebattleType())
     else:
         events_dispatcher.loadBattleSessionList()
     return True