添加协议

This commit is contained in:
aozhiwei 2021-09-27 03:41:16 +00:00
parent b94a8ff9c2
commit c159871bf9
4 changed files with 58 additions and 0 deletions

View File

@ -341,6 +341,10 @@ public:
#ifdef DEBUG
MetaMgr::Instance()->show_team_ui = 1;
#endif
MetaMgr::Instance()->match_team_time = MetaMgr::Instance()->GetSysParamAsInt("match_team_time", 0);
MetaMgr::Instance()->match_robot_time = MetaMgr::Instance()->GetSysParamAsInt("match_robot_time", 0);
MetaMgr::Instance()->match_choose_time = MetaMgr::Instance()->GetSysParamAsInt("match_choose_time", 0);
MetaMgr::Instance()->match_lock_time = MetaMgr::Instance()->GetSysParamAsInt("match_lock_time", 0);
{
METAMGR_READ(prebattle_box_id_chiji, 0);
}

View File

@ -176,6 +176,10 @@ class MetaMgr : public a8::Singleton<MetaMgr>
int async_send_mapblock = 1;
int show_team_ui = 1;
int match_team_time = 0;
int match_robot_time = 0;
int match_choose_time = 0;
int match_lock_time = 0;
private:
MetaDataLoader* loader_ = nullptr;

View File

@ -21,6 +21,9 @@ enum CMMessageId_e
_CMGetBoxInfo = 215;
_CMOpenBox = 216;
_CMExecCommand = 217;
_CMMatchCancel = 218;
_CMMatchChoose = 219;
_CMMatchStartGame = 220;
}
enum SMMessageId_e
@ -49,4 +52,5 @@ enum SMMessageId_e
_SMGameStart = 1013;
_SMSysPiaoMsg = 1014;
_SMShowCountdown = 1015;
_SMUpdateMatchInfo = 1016;
}

View File

@ -868,6 +868,27 @@ message MFRichTextElement
optional MFImageElement union_obj_2 = 3; //
}
message MFMatchTeamMember
{
optional string account_id = 1; //id account_id
optional string name = 2; //
optional string avatar_url = 3; //
optional int32 hero_id = 4; //id
repeated MFWeapon weapons = 5; //
repeated MFSkin skins = 6; // key: id value:
repeated MFPair skill_list = 7; // key:id value:,0
optional bool is_leader = 8; //
optional int32 state = 9; //0: 1:
}
//
message MFMatchInfo
{
repeated MFMatchTeamMember members = 1; //
optional int32 phase = 2; // 1:() 2 3:
optional int32 countdown = 3; //()
}
//end mfmsg
//
@ -1066,6 +1087,25 @@ message CMOpenBox
optional int32 box_id = 1; //1:
}
//-
message CMMatchCancel
{
}
//-
message CMMatchChoose
{
optional int32 hero_id = 1; //id
repeated MFWeapon weapons = 2; //
repeated MFSkin skins = 3; // key: id value:
repeated MFPair skill_list = 4; // key:id value:,0
}
//-
message CMMatchStartGame
{
}
//endcmmsg
//error_code == 0 ,
@ -1255,3 +1295,9 @@ message SMShowCountdown
optional int32 countdown = 2; //(),msg里的%d标识
optional int32 msg_type = 3; //
}
//
message SMUpdateMatchInfo
{
optional MFMatchInfo info = 1; //
}