marineparkclient/assets/script/netPb/hall.proto
2023-08-15 11:09:12 +08:00

48 lines
1.4 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package hallproto;
//客户端到服务器
enum ENUM_C2S_ID {
GET_GAMEINFO = 1;//获取最新游戏信息
UPTO_GAMEINFO = 2;//更新最新配置到服务器
}
//服务器到客户端
enum ENUM_S2C_ID {
USERINFO_RESP = 101; //游戏信息
}
////////////////////////////////////////////////////////////////////////////////////////
message MeansProp{
uint64 num = 1;//数量
bool bUnlock = 2;//是否解锁
uint32 unlockfee = 3;//解锁费用
uint32 level = 4;//等级
repeated uint32 catchFishes = 5;//可捕获鱼
}
//资产表
message MeansData{
int32 id = 1; //id
MeansProp prop = 2; //
}
//签到信息
message SingInData{
message singIn{
uint32 weekDay = 1; //星期x
uint32 sInType = 2; //签到类型0未签到1已签到2补签
}
uint64 weekOnetime = 1; //当前周一的起始时间
repeated singIn singInlist = 2; //签到列表
}
//游戏信息
message CMD_GAMEINFO
{
uint32 userId = 1; //游戏账号id
repeated MeansData meansData = 2; //资产列表
SingInData singInData = 3; //签到信息
}