forked from SeekyCt/mkw-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserhandler.h
More file actions
18 lines (16 loc) · 755 Bytes
/
userhandler.h
File metadata and controls
18 lines (16 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
USERHandler is the class that handles the creation and processing of USER packets.
A pointer to an instance of this class is stored at 0x809c2108 PAL
See also http://wiki.tockdom.com/wiki/MKWii_Network_Protocol/USER
*/
class USERHandler {
void update(); // 806629c0 PAL
void prepare(); // 8066284c PAL, wipes all stored packets and regenerates outgoing packet
void createSendPacket(); // 8066300c PAL
void importRecvPackets(); // 80662ebc PAL
bool isPrepared; // if false, will call prepare
// unknown 0x1-7
USERPacket sendPacket; // outgoing packet, 0xc0 struct, see http://wiki.tockdom.com/wiki/MKWii_Network_Protocol/USER
USERPacket recvPackets[12]; // incoming packets, index is aid
// unknown 0x9c8-9ef
} // Total size 0x9f0