添加僵尸模式协议

This commit is contained in:
aozhiwei 2020-07-22 14:46:17 +08:00
parent 646cbf5e2c
commit ead9b67793
3 changed files with 32 additions and 0 deletions

View File

@ -52,6 +52,9 @@ class MetaMgr : public a8::Singleton<MetaMgr>
int newbie_gas_inactive_time = 5; int newbie_gas_inactive_time = 5;
int midbrid_gas_inactive_time = 15; int midbrid_gas_inactive_time = 15;
int common_gas_inactive_time = 15; int common_gas_inactive_time = 15;
int zbmode_gas_inactive_time = 15;
int zbmode_game_duration = 60 * 2;
int zbmode_player_num = 15;
int jump_time = 10; int jump_time = 10;
float K = 100.0f; float K = 100.0f;
float kill_param = 0.0f; float kill_param = 0.0f;

View File

@ -40,4 +40,5 @@ enum SMMessageId_e
_SMWxVoip = 1011; _SMWxVoip = 1011;
_SMUiUpdate = 1012; _SMUiUpdate = 1012;
_SMGameStart = 1013; _SMGameStart = 1013;
_SMSysPiaoMsg = 1014;
} }

View File

@ -87,6 +87,12 @@ message MFPair64
optional int64 value = 2; //val optional int64 value = 2; //val
} }
//int32元组
message MFTuple
{
repeated int32 values = 1; //values
}
// //
message MFVec2 message MFVec2
{ {
@ -209,6 +215,11 @@ message MFPlayerFull
optional int32 revive_countdown = 31; // optional int32 revive_countdown = 31; //
optional string killer_name = 32; // optional string killer_name = 32; //
optional int32 killer_id = 33; //id() id: -1: optional int32 killer_id = 33; //id() id: -1:
//
optional int32 level = 41; //
optional int32 exp = 42; //
optional int32 race = 43; //1: 2:
} }
//- //-
@ -713,6 +724,7 @@ message CMJoin
optional int64 user_value3 = 33; //user_value3 optional int64 user_value3 = 33; //user_value3
optional bool force_entry_newbie_room = 50; // optional bool force_entry_newbie_room = 50; //
repeated MFTeamMember team_members = 51; // repeated MFTeamMember team_members = 51; //
optional int32 room_mode = 52; //0: 1:
} }
// //
@ -838,6 +850,7 @@ message SMJoinedNotify
optional bool elo_start = 6; // optional bool elo_start = 6; //
optional int32 error_code = 7; // 1: 2 optional int32 error_code = 7; // 1: 2
optional int32 room_mode = 8; //0: 1:
} }
// //
@ -878,6 +891,9 @@ message SMUpdate
optional MFPlane plane = 27; // optional MFPlane plane = 27; //
repeated MFBuffChg chged_buff_list = 28; //buff变更列表 repeated MFBuffChg chged_buff_list = 28; //buff变更列表
repeated MFPropertyChg chged_property_list = 31; //property变更列表 repeated MFPropertyChg chged_property_list = 31; //property变更列表
repeated int32 revive_objids = 41; //
repeated MFTuple dead_objs = 42; //values[0]:objid values[1]:
} }
// //
@ -945,9 +961,21 @@ message SMUiUpdate
optional int32 alive_count = 1; // optional int32 alive_count = 1; //
optional int32 kill_count = 2; // optional int32 kill_count = 2; //
repeated MFCar car_list = 3; // repeated MFCar car_list = 3; //
//
optional int32 zombie_num = 10; //
optional int32 human_num = 11; //
} }
// //
message SMGameStart message SMGameStart
{ {
} }
//
message SMSysPiaoMsg
{
optional string msg = 1; //
optional int32 color = 2; //rgb
optional int32 duration = 3; //
}