mirror of
https://github.com/maciejpedzich/f1-game-packet-parser.git
synced 2025-04-16 01:51:12 +02:00
refactor: add packet_format binrw import to CarMotionData struct
This commit is contained in:
parent
a5e08cd2bf
commit
e39c36de9b
@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
|
||||
#[derive(
|
||||
BinRead, PartialEq, PartialOrd, Copy, Clone, Debug, Serialize, Deserialize,
|
||||
)]
|
||||
#[br(little)]
|
||||
#[br(little, import(_packet_format: u16))]
|
||||
pub struct CarMotionData {
|
||||
/// World space X position in metres
|
||||
pub world_position_x: f32,
|
||||
|
Loading…
x
Reference in New Issue
Block a user