This commit is contained in:
aozhiwei 2023-12-29 14:41:59 +08:00
parent 21c9103d1b
commit f0c46fa934
2 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class Match(object):
'response': [
_common.RspHead(),
['info', _common.MatchInfo(), '匹配信息'],
['join_msg', _common.SpecJoin(), '匹配成功后改字段才有意义传给CMJoin里的参数(team_uuid、payload)'],
]
},
{

View File

@ -1569,3 +1569,11 @@ class MatchInfo(object):
['state',0,'状态 0:匹配中 1:匹配成功'],
['!team_list', MatchTeam(), '队伍列表(客户端自行判断所属哪个队伍)'],
]
class SpecJoin(object):
def __init__(self):
self.fields = [
['team_uuid', '', '自定义房间、moba房间会修改玩家原始team_uuid所以用这个新的team_uuid替换之前CMJoin里的team_uuid'],
['payload', '', '透传数据'],
]