use super::ni_object_net::NiObjectNET;
use binrw::{
io::{Read, Seek},
BinRead, BinReaderExt,
};
#[derive(Debug, PartialEq, BinRead)]
pub struct NiSpecularProperty {
pub base: NiObjectNET,
pub flags: u16,
}
impl NiSpecularProperty {
pub fn parse<R: Read + Seek>(reader: &mut R) -> anyhow::Result<Self> {
Ok(reader.read_le()?)
}
}
impl std::ops::Deref for NiSpecularProperty {
type Target = NiObjectNET;
fn deref(&self) -> &Self::Target {
&self.base
}
}