project-wormhole-esm 0.1.0

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

define_record2! {
    b"CLMT",
    Climate, [
        EditorId;
        ModelData;
        b"WSLT", WeatherList, Vec<WeatherData>;
        b"FNAM", SunTexture, ESMString;
        b"GNAM", SunGlareTexture, ESMString;
        b"TNAM", SunTiming, u8; // TODO: find struct
    ]
}

#[derive(Debug, NomLE)]
pub struct WeatherData {
    pub weather_id: FormId,
    pub chance: u8,
    pub global_id: FormId
}