mirror of
https://github.com/maciejpedzich/f1-game-packet-parser.git
synced 2025-04-18 18:51: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,
|
OneShotQualifying = 9,
|
||||||
Race = 10,
|
Race = 10,
|
||||||
Race2 = 11,
|
Race2 = 11,
|
||||||
TimeTrial = 12,
|
Race3 = 12,
|
||||||
|
TimeTrial = 13,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
|
@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
little,
|
little,
|
||||||
import(_packet_format: u16),
|
import(_packet_format: u16),
|
||||||
assert(
|
assert(
|
||||||
max_gears <= 8,
|
max_gears <= 9,
|
||||||
"Car status entry has an invalid max number of gears: {}",
|
"Car status entry has an invalid max number of gears: {}",
|
||||||
max_gears
|
max_gears
|
||||||
)
|
)
|
||||||
|
@ -19,6 +19,8 @@ pub struct LobbyInfoData {
|
|||||||
/// Driver's name.
|
/// Driver's name.
|
||||||
#[br(try_map(read_name))]
|
#[br(try_map(read_name))]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
/// Player's car number
|
||||||
|
pub car_number: u8,
|
||||||
/// Readiness status.
|
/// Readiness status.
|
||||||
pub ready_status: ReadyStatus,
|
pub ready_status: ReadyStatus,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user