mirror of
https://github.com/Theaninova/WanganSunrise.git
synced 2026-01-07 16:02:48 +00:00
nucompat
This commit is contained in:
26
nucompat/src/formats/xmd.rs
Normal file
26
nucompat/src/formats/xmd.rs
Normal file
@@ -0,0 +1,26 @@
|
||||
use binrw::binrw;
|
||||
|
||||
#[binrw]
|
||||
#[brw(repr = u32)]
|
||||
#[derive(Debug)]
|
||||
pub enum NuXmdListCounts {
|
||||
LmbTexturesResources = 1,
|
||||
PosLenId = 3,
|
||||
}
|
||||
|
||||
#[binrw]
|
||||
#[brw(little, magic = b"XMD\0001\0")]
|
||||
#[derive(Debug)]
|
||||
pub struct NuXmd {
|
||||
pub layout: NuXmdListCounts,
|
||||
pub count: u32,
|
||||
#[br(count = count)]
|
||||
#[brw(align_after = 0x10)]
|
||||
pub positions: Vec<u32>,
|
||||
#[br(count = count)]
|
||||
#[brw(align_after = 0x10)]
|
||||
pub lengths: Vec<u32>,
|
||||
#[br(count = count)]
|
||||
#[brw(align_after = 0x10)]
|
||||
pub ids: Vec<u32>,
|
||||
}
|
||||
Reference in New Issue
Block a user