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

46 lines
1.1 KiB
Protocol Buffer

// 该文件由工具自动生成,不要手动修改该文件
package project;
// 猫舍信息
message p_house {
optional int64 house_id = 1; // 猫舍唯一id
optional int64 house_cid = 2; // 猫舍配置id
optional int64 num = 3; // 猫入住数量
}
// 登陆信息:协议号:18_1(c2s)
message population_info_c2s {
}
// 登陆信息:协议号:18_1(s2c)
message population_info_s2c {
repeated p_house list = 1; // 猫舍信息列表
optional int64 cost_num = 2; // 已使用生效猫口
}
// 点击派发猫饭:协议号:18_2(c2s)
message population_kick_food_c2s {
}
// 点击派发猫饭:协议号:18_2(s2c)
message population_kick_food_s2c {
}
// 进猫舍:协议号:18_3(c2s)
message population_enter_house_c2s {
required int64 house_id = 1; // 猫舍唯一id
}
// 进猫舍:协议号:18_3(s2c)
message population_enter_house_s2c {
repeated p_house list = 1; // 更新的猫舍信息列表
}
// 更新已使用生效猫口数:协议号:18_4(s2c)
message population_up_cost_num_s2c {
optional int64 cost_num = 1; // 已使用生效猫口
}