71 lines
1.3 KiB
Erlang
71 lines
1.3 KiB
Erlang
|
|
%%-----------------------------------------
|
||
|
|
%%
|
||
|
|
%%
|
||
|
|
%%-----------------------------------------
|
||
|
|
-module(proto_168).
|
||
|
|
-export([
|
||
|
|
info/0
|
||
|
|
,cfg/0
|
||
|
|
]
|
||
|
|
).
|
||
|
|
-include("protocol.hrl").
|
||
|
|
|
||
|
|
info() -> {
|
||
|
|
"提示处理"
|
||
|
|
,[]
|
||
|
|
}.
|
||
|
|
|
||
|
|
cfg() ->
|
||
|
|
[
|
||
|
|
#rpc{
|
||
|
|
code = 16800
|
||
|
|
,log_title = "屏幕下方提示"
|
||
|
|
,req_desc = "通用提示"
|
||
|
|
,req = [
|
||
|
|
{uint32, idx, "编号"}
|
||
|
|
,{uint32, val, "数值"}
|
||
|
|
,{string, str, "字符"}
|
||
|
|
]
|
||
|
|
,reply_desc = "通用提示返回结果"
|
||
|
|
,reply = [
|
||
|
|
{uint8, type, "提示类型,参考notice.xml表"},
|
||
|
|
{array, tuple, arg_uint32, "参数32位列表", [
|
||
|
|
{uint8, key, "键"},
|
||
|
|
{uint32, value, "对应的值"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{array, tuple, arg_str, "参数字符串列表", [
|
||
|
|
{uint8, key, "键"},
|
||
|
|
{string, value, "对应的值"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{uint32, idx, "编号"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 16801
|
||
|
|
,log_title = "请求战斗外buff"
|
||
|
|
,req_desc = ""
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = ""
|
||
|
|
,reply = [
|
||
|
|
{array, tuple, buff_list, "buff列表", [
|
||
|
|
{uint32, bid, "buff bid"},
|
||
|
|
{uint32, remain_seconds, "剩余时间"}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
,#rpc{
|
||
|
|
code = 16802
|
||
|
|
,log_title = "清除战斗外buff"
|
||
|
|
,req_desc = ""
|
||
|
|
,req = [
|
||
|
|
]
|
||
|
|
,reply_desc = ""
|
||
|
|
,reply = [
|
||
|
|
{uint32, bid, "buff bid"}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
].
|