void NFCSLGShopModule::OnSLGClienBuyItem(const int nSockIndex, const int nMsgID, const char* msg, const uint32_t nLen) { CLIENT_MSG_PROCESS(nSockIndex, nMsgID, msg, nLen, NFMsg::ReqAckBuyObjectFormShop); const std::string strItemID = xMsg.config_id(); const float fX = xMsg.x(); const float fY = xMsg.y(); const float fZ = xMsg.z(); ReqBuyItem(nPlayerID, strItemID, fX, fY, fZ); }
void NFCShopModule::OnClienBuyItem(const int nSockIndex, const int nMsgID, const char* msg, const uint32_t nLen) { CLIENT_MSG_PROCESS(nSockIndex, nMsgID, msg, nLen, NFMsg::ReqAckBuyObjectFormShop); const std::string& strShopItemID = xMsg.config_id(); NFVector3 v; v.SetX(xMsg.x()); v.SetY(xMsg.y()); v.SetZ(xMsg.z()); ReqBuyItem(nPlayerID, strShopItemID, v); }