Files
rebar_server/game_server/apps/game_proto/proto/industry.proto
T
2026-05-19 11:30:21 +08:00

69 lines
1.8 KiB
Protocol Buffer

// 该文件由工具自动生成,不要手动修改该文件
package project;
import "proto_type.proto" ;
// 产业信息
message p_industry_info {
required int64 id = 1; // 产业唯一id
required int64 cid = 2; // 产业cid
optional int64 building_id = 3; // 建筑唯一id
optional int64 building_cid = 4; // 建筑cid
required int32 hire_num = 5; // 雇佣猫工数量
repeated p_kv delegation_list = 6; // 委派的艾露猫列表:k-位置;v-艾露猫唯一id
}
// 产业信息:协议号:20_1(c2s)
message industry_info_c2s {
}
// 产业信息:协议号:20_1(s2c)
message industry_info_s2c {
repeated p_industry_info list = 1; // 产业信息列表
}
// 雇佣猫工:协议号:20_2(c2s)
message industry_hire_c2s {
required int64 id = 1; // 产业唯一id
required int32 num = 2; // 雇佣数
}
// 雇佣猫工:协议号:20_2(s2c)
message industry_hire_s2c {
optional int64 id = 1; // 产业唯一id
optional int32 num = 2; // 雇佣数
}
// 委派艾露猫:协议号:20_3(c2s)
message industry_delegate_c2s {
required int64 id = 1; // 产业唯一id
required int64 cat_id = 2; // 艾露猫唯一id
required int32 pos = 3; // 位置
}
// 委派艾露猫:协议号:20_3(s2c)
message industry_delegate_s2c {
optional int64 id = 1; // 产业唯一id
optional int64 cat_id = 2; // 艾露猫唯一id
optional int32 pos = 3; // 位置
}
// 取消委派艾露猫:协议号:20_4(c2s)
message industry_cancel_delegate_c2s {
required int64 id = 1; // 产业唯一id
required int64 cat_id = 2; // 艾露猫唯一id
}
// 取消委派艾露猫:协议号:20_4(s2c)
message industry_cancel_delegate_s2c {
optional int64 id = 1; // 产业唯一id
optional int64 cat_id = 2; // 艾露猫唯一id
}
// 更新产业信息:协议号:20_5(s2c)
message industry_update_s2c {
repeated p_industry_info list = 1; // 产业信息列表
}