PH_CMSG_CREATURE_QUERY: Contains a constructor and the destructor at the end:
Код:
CliQueryCreature::CliQueryCreature and CliQueryCreature::~CliQueryCreature
or Player before the Cli, but I don't remember.
The construcor contains an offset (vtable) which points to functions for read the data from CDataStore, read the netmessage (opcode) as uint32.
your 'NetClient__ProcessMessage0' is 'NetClient::HandleData'
your 'sub_79A82A' has JamClientMessage and CONNECTION_ID as args and is named ::Send too you ::Send2 just have CDataStore as first arg.
NetClient__Send_d is used a few times too yea, but it calls the netClient functions, so..
NetClient__Send_d:
Код:
int __cdecl ClientServices::Send(JamClientMessage *a1)
{
int result; // eax@1
void *v2; // eax@2
result = ClientServices::Connection();
if ( result )
{
v2 = (void *)ClientServices::Connection();
result = NetClient::Send(v2, a1, 2); // NetClient::Send(JamClientMessage *,CONNECTION_ID)
}
return result;
}
there is another ClientServices::Send function for the old stuff which calls 'NetClient::Send(CDataStore *,CONNECTION_ID)' instead of the JamClientmessage stuff.