This commit is contained in:
aozhiwei 2019-03-23 13:46:36 +08:00
parent b4004df698
commit 609ae95ad1
3 changed files with 14 additions and 11 deletions

View File

@ -213,7 +213,7 @@ void Player::_CMVoice(f8::MsgHdr& hdr, const cs::CMVoice& msg)
send_func); send_func);
} }
void Player::FillMFPlayerData(cs::MFPlayerData* player_data) void Player::FillMFPlayerData(cs::MFActivePlayerData* player_data)
{ {
player_data->set_has_action(false); player_data->set_has_action(false);
} }

View File

@ -10,7 +10,7 @@ namespace cs
class CMEmote; class CMEmote;
class CMSpectate; class CMSpectate;
class CMVoice; class CMVoice;
class MFPlayerData; class MFActivePlayerData;
} }
class Room; class Room;
@ -55,7 +55,7 @@ class Player : public Human
void _CMSpectate(f8::MsgHdr& hdr, const cs::CMSpectate& msg); void _CMSpectate(f8::MsgHdr& hdr, const cs::CMSpectate& msg);
void _CMVoice(f8::MsgHdr& hdr, const cs::CMVoice& msg); void _CMVoice(f8::MsgHdr& hdr, const cs::CMVoice& msg);
void FillMFPlayerData(cs::MFPlayerData* player_data); void FillMFPlayerData(cs::MFActivePlayerData* player_data);
private: private:
cs::SMUpdate* update_msg = nullptr; cs::SMUpdate* update_msg = nullptr;

View File

@ -228,7 +228,7 @@ message MFLootFull
optional int32 obj_uniid = 1; //id optional int32 obj_uniid = 1; //id
optional MFVector2D pos = 2; // optional MFVector2D pos = 2; //
optional string name = 6; optional int32 item_id = 6;
optional int32 count = 7; optional int32 count = 7;
optional int32 age_ms = 8; optional int32 age_ms = 8;
} }
@ -331,8 +331,8 @@ message MFObjectFull
optional MFSmokeFull union_obj_9 = 10; optional MFSmokeFull union_obj_9 = 10;
} }
// //()
message MFPlayerData message MFActivePlayerData
{ {
optional float boost = 1; optional float boost = 1;
@ -352,6 +352,7 @@ message MFPlayerData
optional int32 spectator_count = 20; optional int32 spectator_count = 20;
} }
//
message MFGasData message MFGasData
{ {
optional int32 mode = 1; //0:inactive 1:waiting 2:moveing optional int32 mode = 1; //0:inactive 1:waiting 2:moveing
@ -373,12 +374,14 @@ message MFTeamData
optional bool downed = 7; optional bool downed = 7;
} }
message MFTeamInfo //
message MFTeammateInfo
{ {
optional int32 team_id = 1; optional int32 team_id = 1;
repeated int32 player_ids = 2; repeated int32 player_ids = 2;
} }
//
message MFBullet message MFBullet
{ {
optional int32 player_id = 1; //id optional int32 player_id = 1; //id
@ -571,12 +574,12 @@ message SMUpdate
repeated MFObjectFull full_objects = 3; //-() repeated MFObjectFull full_objects = 3; //-()
repeated MFObjectPart part_objects = 4; //-() repeated MFObjectPart part_objects = 4; //-()
optional int32 active_player_id = 5; //id(id) optional int32 active_player_id = 5; //id(id)
optional MFPlayerData active_player_data = 6; //() optional MFActivePlayerData active_player_data = 6; //()
optional int32 alive_count = 15; // optional int32 alive_count = 15; //
optional int32 gasT = 16; optional int32 gasT = 16; //
optional MFGasData gas_data = 17; optional MFGasData gas_data = 17; //
repeated MFTeamData team_data = 18; repeated MFTeamData team_data = 18;
repeated MFTeamInfo teams = 19; repeated MFTeammateInfo teams = 19; //
repeated MFBullet bullets = 20; // repeated MFBullet bullets = 20; //
repeated MFShot shots = 21; // repeated MFShot shots = 21; //
repeated MFExplosion explosions = 22; // repeated MFExplosion explosions = 22; //