147 lines
4.0 KiB
Protocol Buffer
147 lines
4.0 KiB
Protocol Buffer
// 该文件由工具自动生成,不要手动修改该文件
|
|
|
|
package project;
|
|
|
|
import "proto_type.proto" ;
|
|
|
|
|
|
// 获得/失去道具时展示的列表信息
|
|
message p_item_show {
|
|
optional int64 item_cid = 1; // 道具配表id
|
|
optional int64 number = 2; // 道具数量
|
|
optional int64 expired_time = 3; // 道具失效时间
|
|
optional bool bind = 4; // 是否绑定
|
|
optional int64 item_id = 5; // 道具唯一id,道具不可堆叠时才有值
|
|
}
|
|
|
|
// 使用道具参数
|
|
message p_item_use {
|
|
optional int64 item_id = 1; // 道具唯一id
|
|
optional int64 number = 2; // 道具数量
|
|
repeated int64 options = 3; // 可选参数
|
|
}
|
|
|
|
// 出售道具参数
|
|
message p_item_sell {
|
|
optional int64 item_id = 1; // 道具唯一id
|
|
optional int64 number = 2; // 道具数量
|
|
}
|
|
|
|
// 分解道具参数
|
|
message p_item_decompose {
|
|
optional int64 item_id = 1; // 道具唯一id
|
|
optional int64 number = 2; // 道具数量
|
|
}
|
|
|
|
// 服务端自动分解道具参数
|
|
message p_item_decompose_auto {
|
|
optional int64 item_cid = 1; // 道具配置id
|
|
optional int64 number = 2; // 道具数量
|
|
}
|
|
|
|
// 道具列表:协议号:9_1(c2s)
|
|
message item_info_c2s {
|
|
}
|
|
|
|
// 道具列表:协议号:9_1(s2c)
|
|
message item_info_s2c {
|
|
repeated p_item list = 1; // 道具列表
|
|
}
|
|
|
|
// 使用道具:协议号:9_2(c2s)
|
|
message item_use_by_id_c2s {
|
|
repeated p_item_use list = 1; // 使用的道具列表
|
|
}
|
|
|
|
// 使用道具:协议号:9_2(s2c)
|
|
message item_use_by_id_s2c {
|
|
}
|
|
|
|
// 获取道具统计信息:协议号:9_3(c2s)
|
|
message item_get_statistics_c2s {
|
|
required int64 item_cid = 1; // 道具配表id
|
|
required int64 type = 2; // 统计类型,1-获得 2-消耗
|
|
optional int64 act_cid = 3; // 活动id
|
|
}
|
|
|
|
// 获取道具统计信息:协议号:9_3(s2c)
|
|
message item_get_statistics_s2c {
|
|
required int64 item_cid = 1; // 道具配表id
|
|
required int64 type = 2; // 统计类型,1-获得 2-消耗
|
|
required int64 day = 3; // 每日
|
|
required int64 week = 4; // 每周
|
|
required int64 month = 5; // 每月
|
|
required int64 all = 6; // 总共
|
|
optional int64 act_cid = 7; // 活动id
|
|
}
|
|
|
|
// 合成道具:协议号:9_4(c2s)
|
|
message item_synthesize_c2s {
|
|
required int64 synthesize_cid = 1; // 道具合成配表id
|
|
required int32 number = 2; // 合成数量
|
|
}
|
|
|
|
// 合成道具:协议号:9_4(s2c)
|
|
message item_synthesize_s2c {
|
|
optional int64 synthesize_cid = 1; // 道具合成配表id
|
|
optional int32 number = 2; // 合成数量
|
|
}
|
|
|
|
// 出售道具:协议号:9_5(c2s)
|
|
message item_sell_by_id_c2s {
|
|
repeated p_item_sell list = 1; // 出售的道具列表
|
|
}
|
|
|
|
// 出售道具:协议号:9_5(s2c)
|
|
message item_sell_by_id_s2c {
|
|
repeated p_item_sell list = 1; // 出售的道具列表
|
|
}
|
|
|
|
// 分解道具:协议号:9_6(c2s)
|
|
message item_decompose_by_id_c2s {
|
|
repeated p_item_decompose list = 1; // 分解的道具列表
|
|
}
|
|
|
|
// 分解道具:协议号:9_6(s2c)
|
|
message item_decompose_by_id_s2c {
|
|
repeated p_item_decompose list = 1; // 分解的道具列表
|
|
}
|
|
|
|
// 推送新增道具:协议号:9_90(s2c)
|
|
message item_add_s2c {
|
|
repeated p_item list = 1; // 道具列表
|
|
}
|
|
|
|
// 推送更新道具:协议号:9_91(s2c)
|
|
message item_update_s2c {
|
|
repeated p_item list = 1; // 道具列表
|
|
}
|
|
|
|
// 推送删除道具:协议号:9_92(s2c)
|
|
message item_delete_s2c {
|
|
repeated int64 list = 1; // 道具唯一id列表
|
|
}
|
|
|
|
// 恭喜获得:协议号:9_93(s2c)
|
|
message item_gain_show_s2c {
|
|
optional int32 source = 1; // 来源
|
|
repeated p_item_show list = 2; // 获得的道具信息
|
|
optional int64 uid = 3; // 唯一id标识,用于标识多个该协议是否是关联产生的,客户端可以做拼接显示
|
|
}
|
|
|
|
// 失去道具展示:协议号:9_94(s2c)
|
|
message item_lose_show_s2c {
|
|
optional int32 dest = 1; // 去向
|
|
repeated p_item_show list = 2; // 失去的道具信息
|
|
}
|
|
|
|
// 超上限的道具,不能再获得:协议号:9_95(s2c)
|
|
message item_limit_s2c {
|
|
repeated int64 list = 1; // 道具配置id列表
|
|
}
|
|
|
|
// 自动分解通知:协议号:9_96(s2c)
|
|
message item_auto_decompose_notify_s2c {
|
|
repeated p_item_decompose_auto list = 1; // 自动分解道具列表
|
|
}
|