project-wormhole-esm 0.1.0

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

define_record2! {
    b"SCOL",
    StaticCollection, [
        EditorId;
        PreviewTransform;
        ModelData;
        ObjectBounds;
        FullName;
        b"FLTR", Filter, ESMString;
        b"ONAM", StaticItem, FormId;
        b"DATA", ItemPlacements, Vec<StaticItemPlacement>;
    ]
}


// TODO: Smallest DATA structure size is 28 bytes, yet it seems to be wildly inaccurate
// Maybe its all halves?
#[derive(Debug, NomLE)]
pub struct StaticItemPlacement {
    pub position: [f32; 3],
    pub rotation: [f32; 3],
    pub scale: f32
}