This commit is contained in:
aozhiwei 2019-04-08 14:31:44 +08:00
parent 715310d137
commit f86291f4bc
5 changed files with 15 additions and 26 deletions

View File

@ -47,7 +47,6 @@ void HandlerMgr::RegisterNetMsgHandlers()
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMMove);
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMEmote);
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMSpectate);
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMVoice);
}

View File

@ -708,11 +708,6 @@ void Player::_CMEmote(f8::MsgHdr& hdr, const cs::CMEmote& msg)
}
void Player::_CMSpectate(f8::MsgHdr& hdr, const cs::CMSpectate& msg)
{
}
void Player::_CMVoice(f8::MsgHdr& hdr, const cs::CMVoice& msg)
{
cs::SMVoiceNotify notifymsg;

View File

@ -8,7 +8,6 @@ namespace cs
class CMMove;
class CMDropItem;
class CMEmote;
class CMSpectate;
class CMVoice;
class MFActivePlayerData;
class MFGasData;
@ -84,7 +83,6 @@ class Player : public Human
void _CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg);
void _CMEmote(f8::MsgHdr& hdr, const cs::CMEmote& msg);
void _CMSpectate(f8::MsgHdr& hdr, const cs::CMSpectate& msg);
void _CMVoice(f8::MsgHdr& hdr, const cs::CMVoice& msg);
void FillMFActivePlayerData(cs::MFActivePlayerData* player_data);

View File

@ -8,7 +8,6 @@ enum CMMessageId_e
_CMJoin = 103;
_CMMove = 201;
_CMEmote = 204;
_CMSpectate = 205;
_CMVoice = 206;
}

View File

@ -477,22 +477,25 @@ message MFPlayerStats
{
optional int32 player_id = 1; //id
optional string player_avatar_url = 2; //
//
optional int32 time_alive = 3; //
optional int32 kills = 4; //
optional int32 damage_amount = 8; //
optional int32 heal_amount = 20; //
//
optional int32 history_time_alive = 30; //
optional int32 history_kills = 31; //
optional int32 history_damage_amount = 32; //
optional int32 history_heal_amount = 33; //
optional int32 gold = 10; //
optional int32 score = 11; //
optional int32 dead = 5; //
optional int32 killer_id = 7; //id()
optional int32 damage_amount = 8; //
optional int32 gold = 10; //
optional int32 all_score = 11; //
optional int32 heal_cnt = 15; //
optional int32 heal_amount = 20; //
optional int32 old_elo = 17;
optional int32 new_elo = 18;
optional int32 chg_elo = 19;
optional string account_id = 21; //id
repeated MFGoods annual_goods = 22;
}
//end mfmsg
@ -542,6 +545,8 @@ message CMMove
optional bool interaction = 9; //
repeated int32 interaction_objids = 23; //id列表
optional bool spectate = 30; //
}
//
@ -559,13 +564,6 @@ message CMEmote
optional bool team_only = 4;
}
//
message CMSpectate
{
optional int32 spec_next = 1;
optional int32 spec_prev = 2;
}
//
message CMVoice
{