| | |
| | |
|
| | | return
|
| | |
|
| | | def DoChampionshipOpen(curPlayer):
|
| | | NotifyPlayerChampionshipInfo(curPlayer, GameWorld.GetGameWorld().GetTick())
|
| | | return
|
| | |
|
| | | def OnPlayerLogin(curPlayer, tick):
|
| | |
|
| | | if GameWorld.IsCrossServer():
|
| | | return
|
| | |
|
| | | if not PlayerControl.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_Championship):
|
| | | return
|
| | | |
| | | NotifyPlayerChampionshipInfo(curPlayer, tick)
|
| | | return
|
| | |
|
| | | def NotifyPlayerChampionshipInfo(curPlayer, tick):
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | champMgr = GetChampionshipMgr()
|
| | | pkZoneIDList = champMgr.GetChampPKZoneIDList()
|
| | |
| | | def Sync_ChampionshipPKZoneGroupInfo(zoneID, groupMarkDict=None, curPlayer=None):
|
| | | ## 同步排位分区分组信息
|
| | | # @param groupMarkDict: {groupMark:[battleNum, ...], ...}
|
| | | |
| | | |
| | | champMgr = GetChampionshipMgr()
|
| | | if curPlayer:
|
| | | playerZoneID = champMgr.GetPlayerPKZoneID(curPlayer.GetPlayerID())
|
| | | if playerZoneID != zoneID:
|
| | | return
|
| | | if not PlayerControl.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_Championship):
|
| | | return
|
| | |
|
| | | pkZoneMgr = champMgr.GetChampPKZoneMgr(zoneID)
|
| | |
| | | playerZoneID = champMgr.GetPlayerPKZoneID(curPlayer.GetPlayerID())
|
| | | if playerZoneID != zoneID:
|
| | | continue
|
| | | if not PlayerControl.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_Championship):
|
| | | continue
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|
| | |
|
| | | return
|
| | |
| | | champMgr = GetChampionshipMgr()
|
| | | playerZoneID = champMgr.GetPlayerPKZoneID(playerID)
|
| | | if not playerZoneID:
|
| | | return
|
| | | if not PlayerControl.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_Championship):
|
| | | return
|
| | |
|
| | | pkZoneMgr = champMgr.GetChampPKZoneMgr(playerZoneID)
|
| | |
| | | playerZoneID = champMgr.GetPlayerPKZoneID(curPlayer.GetPlayerID())
|
| | | if playerZoneID != zoneID:
|
| | | return
|
| | | if not PlayerControl.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_Championship):
|
| | | return
|
| | |
|
| | | pkZoneMgr = champMgr.GetChampPKZoneMgr(zoneID)
|
| | | if not pkZoneMgr:
|
| | |
| | | playerZoneID = champMgr.GetPlayerPKZoneID(curPlayer.GetPlayerID())
|
| | | if playerZoneID != zoneID:
|
| | | continue
|
| | | if not PlayerControl.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_Championship):
|
| | | continue
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|
| | | return
|
| | |
|
| | |
| | | if curPlayer:
|
| | | playerZoneID = champMgr.GetPlayerOfficialZoneID(curPlayer.GetPlayerID())
|
| | | if playerZoneID != zoneID:
|
| | | return
|
| | | if not PlayerControl.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_Championship):
|
| | | return
|
| | |
|
| | | clientPack = ChPyNetSendPack.tagGCChampionshipOfficialInfo()
|
| | |
| | | playerZoneID = champMgr.GetPlayerOfficialZoneID(curPlayer.GetPlayerID())
|
| | | if playerZoneID != zoneID:
|
| | | continue
|
| | | if not PlayerControl.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_Championship):
|
| | | continue
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|
| | |
|
| | | return
|