project-wormhole-esm 0.1.0

ESM file format parser for Project Wormhole
Documentation
use crate::dev::*;

define_record2! {
    b"SOUN",
    SoundMarker, [
        EditorId;
        ObjectBounds;
        b"SDSC", SoundDescriptor, FormId;
        b"REPT", Repeat, SoundMarkerRepeat;
    ]
}


// Min 8 bytes, Sometimes 9 bytes
#[derive(Debug, NomLE)]
pub struct SoundMarkerRepeat {
    pub min_time: f32,
    pub max_time: f32,
    pub stackable: Option<u8>
}