29 lines
647 B
C++
29 lines
647 B
C++
#pragma once
|
|
|
|
#include "ProtocolCommand.h"
|
|
#include "ShopActionFactory.hpp"
|
|
|
|
class CPCCShopInquireCash : public CProtocolCommand
|
|
{
|
|
public:
|
|
void Execute(DWORD_PTR pSession, PBYTE pBuf);
|
|
|
|
private:
|
|
CShopActionFactory m_factory;
|
|
};
|
|
|
|
void CPCCShopInquireCash::Execute(DWORD_PTR pSession, PBYTE pBuf)
|
|
{
|
|
ShopProtocol::MSG_REQUEST_BASE<void>* GameCodeBase = (ShopProtocol::MSG_REQUEST_BASE<void>*)pBuf;
|
|
|
|
CShopAction* pFactory = m_factory.GetShopActionObj();
|
|
|
|
if(NULL != pFactory)
|
|
{
|
|
pFactory->ExecuteInquireCash(pSession, pBuf);
|
|
}
|
|
else
|
|
{
|
|
BILLING_LOG(WZPUBLIC::LEVEL_WARN, "Unknown GameCode (%ld) : Inquire", GameCodeBase->GetGameCode());
|
|
}
|
|
} |