Difference between revisions of "Network Protocol/ROOM"
Jump to navigation
Jump to search
m |
|||
Line 13: | Line 13: | ||
// param1: Event type 0..3: GP, TEAM, BATTLE, COIN | // param1: Event type 0..3: GP, TEAM, BATTLE, COIN | ||
// param2: * | // param2: * | ||
+ | |||
+ | // mode == 0x02 : Register someone as friend | ||
+ | |||
+ | // mode == 0x03 : Sending "Here I am" message after joining | ||
// mode == 0x04 : Send a room message | // mode == 0x04 : Send a room message |
Revision as of 18:40, 17 August 2018
This pages is related to MKWii Network Protocol and describes the record type ROOM in GNU C notation. The record is only used in private rooms.
typedef struct udp_room_t { /*00*/ u8 mode; // record mode: 0|1|2|3|4 /*01*/ u8 unknown_01; // always 0x00 /*02*/ u8 param1; // parameter 1 /*03*/ u8 param2; // parameter 2 /*04*/ // mode == 0x01 : Start an event, send by host // param1: Event type 0..3: GP, TEAM, BATTLE, COIN // param2: * // mode == 0x02 : Register someone as friend // mode == 0x03 : Sending "Here I am" message after joining // mode == 0x04 : Send a room message // param1: message ID // param2: sequence counter (client related) } __attribute__ ((packed)) udp_room_t;