%%---------------------------------------------------- %% 元素神殿 %% %% @author yzq %%---------------------------------------------------- -module(proto_250). -export([info/0, cfg/0]). -include("protocol.hrl"). info() -> { "元素神殿" ,["common.hrl", "formation.hrl"] }. -spec cfg() -> [#rpc{}]. cfg() -> [ #rpc{ code = 25000 ,log_title = "推送基础信息" , req_desc = "推送基础信息" ,req = [ ] ,reply_desc = "基础信息" ,reply = [ {uint8, day, "当前星期几"} ,{uint8, num, "可挑战次数"} ,{uint8, buy_num, "今天已购买次数"} ,{uint32, refresh_time, "下次恢复时间"} ,{uint32, pr_buy_num, "特权今天已购买次数"} ,{array, tuple, list, "副本列表信息", [ {uint8, type, "副本类型"} ,{uint16, group, "当前怪物组"} ,{uint32, boss_id, "最大通关关卡"} ,{uint32, endtime, "本类型倒计时"} ]} ] } ,#rpc{ code = 25001 ,log_title = "挑战" , req_desc = "挑战" ,req = [ {uint8, type, "副本类型"} ,{uint32, boss_id, "关卡ID"} ,{uint16, formation_type, "阵法类型"} ,{array, formation_pos, pos_info, "阵法信息", ?p_g_set(formation_pos_p, [ {uint8, pos, "位置"} ,{uint32, id, "伙伴id"} ])} ,{uint32, hallows_id, "神器id"} ] ,reply_desc = "挑战信息" ,reply = [ {uint8, code, "是否成功"} ,{string, msg, "附加信息"} ] } ,#rpc{ code = 25002 ,log_title = "扫荡" , req_desc = "扫荡" ,req = [ {uint8, type, "副本类型"} ,{uint32, boss_id, "关卡ID"} ] ,reply_desc = "扫荡" ,reply = [ {uint8, code, "是否成功"} ,{string, msg, "附加信息"} ] } ,#rpc{ code = 25003 ,log_title = "购买挑战次数" , req_desc = "购买挑战次数" ,req = [ ] ,reply_desc = "购买挑战次数" ,reply = [ {uint8, code, "是否成功"} ,{string, msg, "附加信息"} ] } ,#rpc{ code = 25004 ,log_title = "挑战次数刷新" ,req_desc = "挑战次数刷新" ,req = [] ,reply = [ {uint8, num, "可挑战次数"} ,{uint8, buy_num, "今天已购买次数"} ,{uint32, pr_buy_num, "特权今天已购买次数"} ,{uint32, refresh_time, "下次恢复时间"} ] } ,#rpc{ code = 25005 ,log_title = "挑战更新" ,req_desc = "挑战更新" ,req = [] ,reply = [ {uint8, type, "副本类型"} ,{uint16, group, "当前怪物组"} ,{uint32, boss_id, "最大通关关卡"} ] } ].