21 lines
600 B
Protocol Buffer
21 lines
600 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
|
|
enum ItemType {
|
|
Props = 0; //道具
|
|
Equip = 2; //装备
|
|
Fragment = 12; //碎片
|
|
}
|
|
|
|
//背包格子
|
|
message GridData {
|
|
bool IsNew = 1; //是否是新的
|
|
uint32 ItemId = 2; //存放物品的Id
|
|
uint32 Amount = 3; //存放物品的数量
|
|
}
|
|
|
|
//用户背包
|
|
message DB_UserPackData {
|
|
string UserId = 1; //tags:{bson:"_id"}用户Id
|
|
repeated GridData Pack = 2; //背包列表
|
|
} |