This commit is contained in:
2024-04-21 16:02:50 +02:00
parent 2dea132d7f
commit 6fa0fbdb77
10 changed files with 601 additions and 10 deletions

View 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>,
}