Пример #1
0
def showMarker(enemyID,config):
    if enemyID is None or MarkersStorage.hasMarker(enemyID):
        return
    minimap = g_windowsManager.battleWindow.minimap
    if minimap is None:
        return
    enemyVehicle = BigWorld.entities.get(enemyID)
    if enemyVehicle is None:
        return
    if not enemyVehicle.isAlive():
        return
    indicator = DirectionIndicator(config)
    if indicator is None:
        return
    indicatorCtrl = DirectionIndicatorCtrl(indicator, config, enemyVehicle)
    VehicleMarker = VehicleMarkers(enemyID, minimap, 5, indicatorCtrl)
    if VehicleMarker is not None:
        MarkersStorage.addMarker(enemyID, VehicleMarker, config)
Пример #2
0
def showMarker(enemyID, config):
    if enemyID is None or MarkersStorage.hasMarker(enemyID):
        return
    battle = g_appLoader.getDefBattleApp()
    if battle is None:
        return
    minimap = battle.minimap
    enemyVehicle = BigWorld.entities.get(enemyID)
    if enemyVehicle is None:
        return
    if not enemyVehicle.isAlive():
        return
    indicator = DirectionIndicator(config)
    if indicator is None:
        return
    indicatorCtrl = DirectionIndicatorCtrl(indicator, config, enemyVehicle)
    VehicleMarker = VehicleMarkers(enemyID, minimap, 5, indicatorCtrl)
    if VehicleMarker is not None:
        MarkersStorage.addMarker(enemyID, VehicleMarker, config)