use padding instead of magic
This commit is contained in:
parent
dd8cf2544d
commit
4a1e26e5be
@ -90,26 +90,23 @@ pub struct WorldEventReset{
|
|||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(little)]
|
#[brw(little)]
|
||||||
pub struct WorldEventButton{
|
pub struct WorldEventButton{
|
||||||
|
#[br(pad_after=8)]
|
||||||
pub button_id:u32,
|
pub button_id:u32,
|
||||||
#[brw(magic=b"quatdata")]
|
|
||||||
__:(),
|
|
||||||
}
|
}
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(little)]
|
#[brw(little)]
|
||||||
pub struct WorldEventSetTime{
|
pub struct WorldEventSetTime{
|
||||||
#[br(map=read_trey_double)]
|
#[br(map=read_trey_double)]
|
||||||
|
#[br(pad_after=4)]
|
||||||
pub time:f64,
|
pub time:f64,
|
||||||
#[brw(magic=b"data")]
|
|
||||||
__:(),
|
|
||||||
}
|
}
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(little)]
|
#[brw(little)]
|
||||||
pub struct WorldEventSetPaused{
|
pub struct WorldEventSetPaused{
|
||||||
#[br(map=|paused:u32|paused!=0)]
|
#[br(map=|paused:u32|paused!=0)]
|
||||||
#[bw(map=|paused:&bool|*paused as u32)]
|
#[bw(map=|paused:&bool|*paused as u32)]
|
||||||
|
#[br(pad_after=8)]
|
||||||
pub paused:bool,
|
pub paused:bool,
|
||||||
#[brw(magic=b"quatdata")]
|
|
||||||
__:(),
|
|
||||||
}
|
}
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(little)]
|
#[brw(little)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user