27 lines
607 B
Protocol Buffer
27 lines
607 B
Protocol Buffer
syntax = "proto3";
|
|
package upgrade;
|
|
option go_package = "mongo.games.com/game/protocol/upgrade";
|
|
|
|
enum PacketID {
|
|
// 3100~3199
|
|
PacketID_Zero = 0;
|
|
PACKET_CSClientUpgrades = 3100;
|
|
PACKET_SCClientUpgrades = 3101;
|
|
}
|
|
|
|
message PropInfo{
|
|
int32 ItemId = 1;//物品ID
|
|
int64 ItemNum = 2;//物品数量
|
|
}
|
|
|
|
// 客户端升级奖励
|
|
//PACKET_CSClientUpgrades
|
|
message CSClientUpgrades{
|
|
}
|
|
//PACKET_SCClientUpgrades
|
|
message SCClientUpgrades{
|
|
bool On = 1; // 是否开启
|
|
bool OnForce = 2; // 是否强制升级(没有关闭按钮)
|
|
repeated PropInfo Award = 3; // 奖励
|
|
int32 Version = 4; // 版本号
|
|
} |