You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.8 KiB
Protocol Buffer

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

syntax = "proto3";
package pb.game.zhgzd;
import "common/common.proto";
option go_package = "dcg/game/pb/game/zhgzd;pbGameZhgzd";
// 加入游戏 push -> game.join -> j
message JoinGame {
pb.common.PbUser user = 1;
}
// 战略出兵 push -> game.unit.dispatch -> s1/s2/s3/s4
message DispatchUnit {
pb.common.PbUser user = 1;
int32 costSp = 2; // 消耗战略点量
string id = 3; // 0001-步兵0004-骑兵0003-弓箭手0006-法师
int32 count = 4; // 出兵数量
}
// 修改当前兵种 push -> game.unit.change -> c1/c2/c3/c4
message ChangeUnit {
pb.common.PbUser user = 1;
int32 costSp = 2; // 消耗战略点量
string id = 3; // 0001-步兵0004-骑兵0003-弓箭手0006-法师
}
// 暴兵(征召模式) push -> game.outbreak -> s
message Outbreak {
pb.common.PbUser user = 1;
int32 costSp = 2; // 消耗战略点量
}
// 移动自己位置 push -> game.pos -> p1/p2/p3/p4/p5
message Position {
pb.common.PbUser user = 1;
int32 costSp = 2; // 消耗战略点量
string position = 3;// 1-上兵营2-中兵营3-下兵营4-上前哨战5-下前哨战
}
// 查询位置 push -> game.where -> w
message Where {
pb.common.PbUser user = 1;
}
// 玩家模式 push -> game.mode -> r1/r2/r3/r4
message PlayerMode {
pb.common.PbUser user = 1;
int32 costSp = 2; // 消耗战略点量
string mode = 3; // 模式
}
/////////////////// 礼物效果
// 战略点调整 push -> game.sp -> 礼物效果
message StrategicPoint {
pb.common.PbUser user = 1;
int32 addLimit = 2; // 提高上限N点
int32 addSpeed = 3; // 提高每秒恢复速度 N(整数)
int32 addSpeedDuration = 4; // 提高每秒恢复速度 (N秒)
}
// 支援技能 push -> game.support -> 礼物效果
message SupportSkill {
pb.common.PbUser user = 1;
string id = 2; // 技能ID S0001/S0002/S0003/S0005
}