mirror of
https://github.com/maciejpedzich/f1-game-packet-parser.git
synced 2025-04-18 18:51:11 +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(
|
#[derive(
|
||||||
BinRead, PartialEq, PartialOrd, Copy, Clone, Debug, Serialize, Deserialize,
|
BinRead, PartialEq, PartialOrd, Copy, Clone, Debug, Serialize, Deserialize,
|
||||||
)]
|
)]
|
||||||
#[br(little)]
|
#[br(little, import(_packet_format: u16))]
|
||||||
pub struct CarMotionData {
|
pub struct CarMotionData {
|
||||||
/// World space X position in metres
|
/// World space X position in metres
|
||||||
pub world_position_x: f32,
|
pub world_position_x: f32,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user