82 lines
2.1 KiB
Protocol Buffer
82 lines
2.1 KiB
Protocol Buffer
// 该文件由工具自动生成,不要手动修改该文件
|
|
|
|
package project;
|
|
|
|
|
|
|
|
// 建筑信息
|
|
message p_building_info {
|
|
required int64 id = 1; // 建筑唯一id
|
|
required int64 cid = 2; // 建筑cid
|
|
required int64 plot_cid = 3; // 建筑地块cid
|
|
required int64 level = 4; // 建筑等级
|
|
required int64 ts = 5; // 建筑升级时间戳
|
|
}
|
|
|
|
// 建造队列信息
|
|
message p_building_queue_info {
|
|
required int64 id = 1; // 队列唯一id
|
|
required int32 building_id = 2; // 正在占用的建筑id,0表示未占用
|
|
}
|
|
|
|
// 建筑信息:协议号:19_1(c2s)
|
|
message building_info_c2s {
|
|
}
|
|
|
|
// 建筑信息:协议号:19_1(s2c)
|
|
message building_info_s2c {
|
|
repeated p_building_info building_list = 1; // 建筑信息列表
|
|
repeated p_building_queue_info queue_list = 2; // 建筑信息列表
|
|
}
|
|
|
|
// 建筑建造:协议号:19_2(c2s)
|
|
message building_create_c2s {
|
|
required int64 cid = 1; // 建筑cid
|
|
required int64 plot_cid = 2; // 地块cid
|
|
required int32 type = 3; // 建造类型:1-普通建造;2-立即建造
|
|
}
|
|
|
|
// 建筑建造:协议号:19_2(s2c)
|
|
message building_create_s2c {
|
|
}
|
|
|
|
// 建筑升级:协议号:19_3(c2s)
|
|
message building_upgrade_c2s {
|
|
required int64 id = 1; // 建筑唯一id
|
|
required int32 type = 2; // 建造类型:1-普通建造;2-立即升级
|
|
}
|
|
|
|
// 建筑升级:协议号:19_3(s2c)
|
|
message building_upgrade_s2c {
|
|
}
|
|
|
|
// 确认建筑升级完成:协议号:19_4(c2s)
|
|
message building_confirm_c2s {
|
|
required int64 id = 1; // 建筑唯一id
|
|
}
|
|
|
|
// 确认建筑升级完成:协议号:19_4(s2c)
|
|
message building_confirm_s2c {
|
|
}
|
|
|
|
// 建筑加速:协议号:19_5(c2s)
|
|
message building_accelerate_c2s {
|
|
required int64 id = 1; // 建筑唯一id
|
|
required int32 type = 2; // 加速类型:1-货币加速
|
|
required int32 times = 3; // 加速次数
|
|
}
|
|
|
|
// 建筑加速:协议号:19_5(s2c)
|
|
message building_accelerate_s2c {
|
|
}
|
|
|
|
// 建筑更新:协议号:19_7(s2c)
|
|
message building_update_building_s2c {
|
|
required p_building_info info = 1; // 建筑唯一id
|
|
}
|
|
|
|
// 建筑队列:协议号:19_8(s2c)
|
|
message building_update_queue_s2c {
|
|
required p_building_queue_info info = 1; // 建筑唯一id
|
|
}
|