MKWii Network Protocol/ROOM

From Custom Mario Kart
Jump to: navigation, search

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 == 0x04 : Send a room message
 //	param1: message ID
 //	param2: sequence counter (client related)
}
__attribute__ ((packed)) udp_room_t;