xdh
2019-04-10 7c39ed3b5f3b3335d064d356243df31d76e18bff
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py
@@ -21,6 +21,7 @@
#导入
import GameLogic_ZhuXianBoss
import GameLogic_HorsePetBoss
import GameLogic_AllFamilyBoss
import GameWorld
import IPY_GameWorld
import ChConfig
@@ -88,6 +89,18 @@
            playerCnt = playerManager.GetPlayerCount()
            hpPer = GameLogic_HorsePetBoss.GetBossRemainHPPer(fblineID, tick)
            fbLinePlayerCntDict[fblineID] = [playerCnt, str(hpPer)]
    elif tagMapID == ChConfig.Def_FBMapID_AllFamilyBoss:
        for index in xrange(gameWorldManager.GetGameWorldCount()):
            gameWorld = IPY_GameWorld.IPY_GameWorld(index)
            playerManager = gameWorld.GetMapCopyPlayerManagerByFbIndex(index)
            fblineID = gameWorld.GetPropertyID() - 1
            if fblineID < 0:
                continue
            if not isAllLine and tagFBLineID != fblineID:
                continue
            playerCnt = playerManager.GetPlayerCount()
            hpPer = GameLogic_AllFamilyBoss.GetBossRemainHPPer(tick)
            fbLinePlayerCntDict[fblineID] = [playerCnt, str(hpPer)]
    else:
        return
    return [tagMapID, fbLinePlayerCntDict]