nif 0.4.0

A super-primitive Gamebryo NIF parser targeting version 20.0.0.4
Documentation
use super::ni_float_interp_controller::NiFloatInterpController;
use binread::{
    io::{Read, Seek},
    BinRead, BinReaderExt,
};

#[derive(Debug, PartialEq, BinRead)]
pub struct NiFlipController {
    pub base: NiFloatInterpController,
    pub texture_slot: u32, // TexType
    pub num_sources: u32,
    #[br(count = num_sources)]
    pub source_refs: Vec<i32>,
}

impl NiFlipController {
    pub fn parse<R: Read + Seek>(reader: &mut R) -> anyhow::Result<Self> {
        Ok(reader.read_le()?)
    }
}