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.
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
|
|
|
option go_package = "/pbPush";
|
|
|
|
|
|
|
|
|
|
message User{
|
|
|
|
|
int64 uId = 1; // 用户id
|
|
|
|
|
string uname = 2; // 用户名
|
|
|
|
|
string avatar = 3; // 头像
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message JoinGame{
|
|
|
|
|
User user = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message CreateUnit{
|
|
|
|
|
User user = 1;
|
|
|
|
|
string unit = 2;//1-步兵,2-骑兵,3-弓箭手,4-法师
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Move{
|
|
|
|
|
User user = 1;
|
|
|
|
|
string line = 2;//1-上,2-中,3-下
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Outbreak{
|
|
|
|
|
User user = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Gift{
|
|
|
|
|
User user = 1;
|
|
|
|
|
int32 giftId = 2;
|
|
|
|
|
string giftName = 3;
|
|
|
|
|
int64 totalCoin = 4;
|
|
|
|
|
int64 sendTime = 5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Wai{
|
|
|
|
|
User user = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message BuildingMode{
|
|
|
|
|
User user = 1;
|
|
|
|
|
string mode = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message DanmakuMsg {
|
|
|
|
|
User user = 1;
|
|
|
|
|
string content = 2;
|
|
|
|
|
}
|