fix: add missing 2022 spec fields and constants

This commit is contained in:
Maciej Pędzich 2025-02-19 14:12:46 +01:00
parent 10dcca8aff
commit ef07718495
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D
3 changed files with 5 additions and 2 deletions

View File

@ -112,7 +112,8 @@ pub enum SessionType {
OneShotQualifying = 9,
Race = 10,
Race2 = 11,
TimeTrial = 12,
Race3 = 12,
TimeTrial = 13,
}
#[non_exhaustive]

View File

@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize};
little,
import(_packet_format: u16),
assert(
max_gears <= 8,
max_gears <= 9,
"Car status entry has an invalid max number of gears: {}",
max_gears
)

View File

@ -19,6 +19,8 @@ pub struct LobbyInfoData {
/// Driver's name.
#[br(try_map(read_name))]
pub name: String,
/// Player's car number
pub car_number: u8,
/// Readiness status.
pub ready_status: ReadyStatus,
}