mirror of
https://github.com/maciejpedzich/f1-game-packet-parser.git
synced 2025-04-16 18:11:11 +02:00
fix: add missing 2022 spec fields and constants
This commit is contained in:
parent
10dcca8aff
commit
ef07718495
@ -112,7 +112,8 @@ pub enum SessionType {
|
||||
OneShotQualifying = 9,
|
||||
Race = 10,
|
||||
Race2 = 11,
|
||||
TimeTrial = 12,
|
||||
Race3 = 12,
|
||||
TimeTrial = 13,
|
||||
}
|
||||
|
||||
#[non_exhaustive]
|
||||
|
@ -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
|
||||
)
|
||||
|
@ -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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user