project-wormhole-esm 0.1.0

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

define_record2! {
    b"TRNS",
    Transform, [
        EditorId;
        b"DATA", Data, TransformData;
    ]
}

// Sizes: 28 and 36
#[derive(Debug, NomLE)]
pub struct TransformData {
    pub position: [f32; 3],
    pub rotation: [f32; 3], // TODO: Needs conversion
    pub scale: f32,
    pub zoom_min: Option<f32>,
    pub zoom_max: Option<f32>
}