| | |
| | | #---------------------------------------------------------------------
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | def DoRefreshMainServerRole(curPlayer):
|
| | | ## 刷新本服角色信息
|
| | | |
| | | curTeam = curPlayer.GetTeam()
|
| | | if curTeam:
|
| | | PlayerTeam.Sync_TeamMemberInfo(curTeam)
|
| | | return
|
| | |
|
| | | ## 玩家登录初始化(封包参数)
|
| | | # @param index 玩家索引
|
| | | # @param tick 当前时间
|
| | |
| | | fblinePack = ChPyNetSendPack.tagGCFBLinePlayerCnt()
|
| | | fblinePack.MapID = tagMapID
|
| | | fblinePack.FBLineInfoList = []
|
| | | for lineID, playerCnt in fbLinePlayerCntDict.items():
|
| | | for lineID, infoList in fbLinePlayerCntDict.items():
|
| | | mapLineState = ChPyNetSendPack.tagGCFBLineInfo()
|
| | | mapLineState.Clear()
|
| | | mapLineState.FBLineID = lineID
|
| | | mapLineState.PlayerCnt = playerCnt
|
| | | mapLineState.PlayerCnt = infoList[0] if infoList else 0
|
| | | mapLineState.ExtraStr = infoList[1] if len(infoList) > 1 else ''
|
| | | mapLineState.ExtraStrLen = len(mapLineState.ExtraStr)
|
| | | fblinePack.FBLineInfoList.append(mapLineState)
|
| | |
|
| | | fblinePack.Count = len(fblinePack.FBLineInfoList)
|