syntax = "proto3";
option go_package = ".;pb";

//Pvp类型
enum PvpType{
    friends = 0;  //好友切磋
}

enum PvpState {
    void = 0;    //无效状态
    ready = 1;   //准备中
    battle = 2;  //战斗中
    cancel = 3;  //战斗取消
    finish = 4;   //战斗结束
}

message PvpUserInfo {
    string uid = 1;
    string name = 2;
    string avatar = 3;
    int32 lv = 4;  
}

message DBPvpBattle {
    string id = 1;              //战斗id
    string servicePath = 2;     //战斗区服地址
    PvpType ptype = 3;          //pvp类型
    PvpState state = 4;         //战斗状态
    PvpUserInfo red = 5;        //红方id
    PvpUserInfo blue = 6;       //红方id
}