Quote:
Originally Posted by irockalone
can you share an example, not a fully solution but just an example.
|
You can use HBs release as a reference.
You need to read the type first, then read the RefObjId to determine the object, if relevant.
Code:
unsigned short type;
msg >> type;
switch (type) {
case 0xc05: { /* spawn */
int refObjId;
msg >> regObjId;
break;
}
If you're planning to pass the message to the original handler, you have to "rewind" it so the original handler starts at "type" and not after RefObjId.