This commit is contained in:
hujiabin 2023-04-07 11:13:22 +08:00
parent fe6a3076be
commit e15d77a187

View File

@ -883,10 +883,11 @@ class BattleCegReward(object):
def __init__(self): def __init__(self):
self.fields = [ self.fields = [
['uuid', '', '唯一id'], ['hero_uniid', '', '唯一id'],
['curr_ceg', 0, '当前ceg数量'], ['id', '', 'id'],
['obtain_ceg', 0, '实际获得ceg数量'], ['gold_uplimit', 0, '当前ceg数量'],
['ceg_uplimit', 0, 'ceg数量上限'], ['obtain_gold', 0, '实际获得ceg数量'],
['curr_gold', 0, 'ceg数量上限'],
] ]
class BattleItemReward(object): class BattleItemReward(object):
@ -897,16 +898,6 @@ class BattleItemReward(object):
['item_num', 0, '道具数量'], ['item_num', 0, '道具数量'],
] ]
class BattleReward(object):
def __init__(self):
self.fields = [
['hero', BattleCegReward(), '英雄奖励'],
['weapon1', BattleCegReward(), '武器1奖励'],
['weapon2', BattleCegReward(), '武器2奖励'],
['!items', [BattleItemReward()], '碎片奖励'],
['lvInfo', [['oldLv',0,'老等级'],['newLv',0,'新等级']], '等级信息'],
]
class BattleRankScore(object): class BattleRankScore(object):
@ -1099,3 +1090,76 @@ class TeamReportTeam(object):
['team_id', 0, '队伍id'], ['team_id', 0, '队伍id'],
['!members', [['account_id', '', '账号id']], '枪械属性'], ['!members', [['account_id', '', '账号id']], '枪械属性'],
] ]
class BattleSettlement(object):
def __init__(self):
self.fields = [
['version', 0, '版本'],
['battle_uuid', 0, '本次战斗唯一id'],
['team_id', 0, '队伍id'],
['room_uuid', 0, '房间唯一id'],
['room_mode', 0, '0:pvp 1: pve'],
['team_mode', 0, '0:个人 1:组队(保留)'],
['game_over', 0, '游戏是否结束'],
['victory', 0, '是否胜利(pvp吃鸡 pve是否通关)'],
['watchable', 0, '是否可观战,小胡那的接口写死0(看历史不可观战)'],
['map_id', 0, '地图id'],
['settlement_status', 0, '0: 结算中(读取个人结算数据) 1已结算(请求小胡接口)'],
['pvp_settlement_type', 0, '結算類型0:個人 1:組隊(保留)'],
['pvp_settlement_color', 0, '0灰 1'],
['pvp_team_rank', 0, '队伍排名'],
['pvp_total_human_num', 0, '房间总人数'],
['pvp_alive_human_num', 0, '房间剩余存活人数'],
['pvp_total_team_num', 0, '本次战斗队伍总数'],
['pvp_match_mode', 0, '比赛模式 0: pvp 1:排位赛'],
['pve_settlement_color', 0, '0灰 1'],
['pve_wave', 0, 'pve波次'],
['pve_max_wave', 0, 'pve总波次'],
['pve_instance_id', 0, 'pve副本id'],
['!members', [BattleSettlementMembersInfo()], '队伍成员信息'],
]
class BattleSettlementMembersInfo(object):
def __init__(self):
self.fields = [
['account_id', 0, '账号id(真人才有account_id)'],
['name', '', '玩家名字'],
['head', 0, '头像id'],
['head_frame', 0, '头像框'],
['sex', 0, '性别'],
['hero_uniid', 0, '英雄uniid'],
['hero_id', 0, '英雄itemId'],
['dead', 0, '是否已死亡'],
['is_mvp', 0, '是否mvp'],
['old_rank', 0, '老段位'],
['new_rank', 0, '新段位'],
['old_score', 0, '老段位积分'],
['new_score', 0, '新段位积分'],
['pvp_kill', 0, 'pvp击杀敌人数'],
['pvp_damage', 0, 'pvp伤害总量'],
['pvp_assist', 0, 'pvp助攻'],
['pvp_survia_time', 0, 'pvp存活时间(毫秒)'],
['pvp_recover', 0, 'pvp治疗总量'],
['pvp_rescue', 0, 'pvp救援'],
['pvp_personal_rank', 0, '个人排名'],
['pve_order', 0, 'pve波次'],
['pve_score', 0, 'pve分数'],
['pve_star', 0, 'pve星'],
['pve_damage', 0, 'pve伤害总量'],
['pve_revive', 0, 'pve复活次数'],
['pve_survia_time', 0, 'pvp存活时间(毫秒)'],
['pve_wave', 0, 'pve波次'],
['pve_max_wave', 0, 'pve总波次'],
['pve_boss_killed', 0, 'pve副本boos是否被击杀'],
['reward', BattleReward(), 'reward'],
]
class BattleReward(object):
def __init__(self):
self.fields = [
['hero', BattleCegReward(), '英雄奖励'],
['!items', [BattleItemReward()], '碎片奖励'],
]