# -*- coding: utf-8 -*- import _common class Role(object): def __init__(self): self.apis = [ { 'desc': '获取角色信息roleInfo', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=roleInfo', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), _common.RoleInfo(), ] }, { 'desc': '客户端战报clientBattleReport', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=clientBattleReport', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': '服务器战报(客户端不用处理)battleReport', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=battleReport', 'params': [ _common.ReqHead(), ['map_id', 0, '地图id'], ['map_tpl_name', '', '地图模板名'], ['room_uuid', 0, '房间唯一id'], ['map_name', '', '地图名'], ['game_time', 0, '游戏时间'], ['hurt', 0, '收到伤害'], ['rank', 0, '排名'], ['kills', 0, '击杀数'], ['harm', 0, '伤害输出'], ['add_HP', 0, '治疗'], ['alive_time', 0, '存活时间'], ['team_status', 0, '是否是组队状态'], ['snipe_kill', 0, '狙击枪击杀数'], ['rifle_kill', 0, '步枪击杀数'], ['pistol_kill', 0, '手枪击杀数'], ['submachine_kill', 0, '冲锋枪击杀数'], ['rescue_member', 0, '救起队友次数'], ['coin_num', 0, '金币'], ['rank_score', 0, '排位积分'], ['pass_score', 0, '通行证积分'], ['items', 0, '道具|分割'], ], 'response': [ _common.RspHead(), ] }, { 'desc': 'getRobotInfo', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=getRobotInfo', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'getFightReward', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=getFightReward', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'getNewHandReward', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=getNewHandReward', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'exchangeCoin', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=exchangeCoin', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'saveNewbie', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=saveNewbie', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'updateDailyAD', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=updateDailyAD', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'getFightEquip', 'group': 'Role', 'url': 'webapp/index.php?c=Role&a=getFightEquip', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'addGiveMeFive', 'group': 'NPlayerInfo', 'url': 'webapp/index.php?c=NPlayerInfo&a=addGiveMeFive', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'getPlayerInfo', 'group': 'NPlayerInfo', 'url': 'webapp/index.php?c=NPlayerInfo&a=getPlayerInfo', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'changeHIFrameHero', 'group': 'NPlayerInfo', 'url': 'webapp/index.php?c=NPlayerInfo&a=changeHIFrameHero', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, { 'desc': 'changeName', 'group': 'NPlayerInfo', 'url': 'webapp/index.php?c=NPlayerInfo&a=changeName', 'params': [ _common.ReqHead(), ], 'response': [ _common.RspHead(), ] }, ]