| | |
| | | return (teamLV == IPY_GameServer.tmlMemberCanCall or
|
| | | teamLV == IPY_GameServer.tmlLeader)
|
| | |
|
| | | def CheckTeamOnLineCount(curTeam):
|
| | | def CheckTeamOnLineCount(curTeam, includeTJG=True):
|
| | | ##获得队伍剩余在线人数
|
| | | |
| | | if not curTeam:
|
| | | return 0
|
| | | count = 0
|
| | | for i in xrange(curTeam.GetMemberCount()):
|
| | | curPlayer = curTeam.GetMemberPlayer(i)
|
| | | if curPlayer == None:
|
| | | continue
|
| | | if not includeTJG and PlayerControl.GetIsTJG(curPlayer):
|
| | | continue
|
| | | count += 1
|
| | | return count
|
| | |
| | | return
|
| | |
|
| | | def DR_Team(eventName, teamID, dataDict):
|
| | | drDict = {"EventName":eventName, "TeamID":teamID}
|
| | | drDict.update(dataDict)
|
| | | DataRecordPack.SendEventPack("Team_GameServer", drDict)
|
| | | #drDict = {"EventName":eventName, "TeamID":teamID}
|
| | | #drDict.update(dataDict)
|
| | | #DataRecordPack.SendEventPack("Team_GameServer", drDict)
|
| | | return
|
| | |
|