Skip to main content

SvcGameEventList

Part of Net/Svc message.

The data of this message is a list of descriptors which contain an event id and a set of keys. This will later be used to decode SvcGameEvent messages.

NameTypeSize in bytesSize in bitsValue
Eventsint1.1259-
Lengthint2.520-
Databyte[]Length[]-GameEventDescriptor[]

Pseudocode Example

fn read_game_event_descriptor() {
let event_id = read_bits(9);
let name = read_ascii_string();
let keys = HasMap::new();

let mut value_type = read_bits(3);
while value_type != 0 {
keys.entry(read_ascii_string())
.or_insert(value_type);

value_type = read_bits(3);
}
}

let events = read_bits(9);
let length = read_bits(20);
let data = read_bit_slice(length);

for _ 0..events {
read_game_event_descriptor();
}