void CUser::RecvStore(Packet & pkt) { uint8 opcode = pkt.read<uint8>(); switch (opcode) { case STORE_CLOSE: RecvStoreClose(pkt); break; } }
void CUser::RecvStore(char *pData) { int index = 0; BYTE opcode = GetByte(pData, index); switch (opcode) { case STORE_CLOSE: RecvStoreClose(pData+index); break; } }