ProcPrepareItems

This commit is contained in:
aozhiwei 2019-06-18 11:17:33 +08:00
parent 507aeeb1b9
commit 0a0c1e33b4
4 changed files with 8 additions and 1 deletions

View File

@ -684,6 +684,11 @@ void Player::HumanInteraction(Human* hum)
);
}
void Player::ProcPrepareItems(const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& prepare_items)
{
}
void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
{
bool has_move_dir = msg.has_move_dir();

View File

@ -79,6 +79,7 @@ class Player : public Human
void ObstacleInteraction(Obstacle* entity);
void LootInteraction(Loot* entity);
void HumanInteraction(Human* hum);
void ProcPrepareItems(const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& prepare_items);
void _CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg);
void _CMEmote(f8::MsgHdr& hdr, const cs::CMEmote& msg);

View File

@ -65,6 +65,7 @@ Player* PlayerMgr::CreatePlayerByCMJoin(long ip_saddr, int socket, const cs::CMJ
hum->skin.skin_lv = std::max(1, hum->GetSkinConfigLv(hum->skin.skin_id));
}
#endif
hum->ProcPrepareItems(msg.prepare_items());
socket_hash_[socket] = hum;
return hum;
}

View File

@ -596,7 +596,7 @@ message CMJoin
optional int32 basemelee = 14; //xx
repeated MFWeapon weapons = 17; //
repeated MFSkin skins = 18; // key: id value:
repeated int32 perpare_items = 19; // energy_shield
repeated int32 prepare_items = 19; // energy_shield
}
//