nif/blocks/ni_animation/
ni_pos_data.rs

1use binrw::{
2    io::{Read, Seek},
3    BinRead, BinReaderExt,
4};
5
6use crate::common::{KeyGroup, Vector3};
7
8#[derive(Debug, PartialEq, BinRead)]
9pub struct NiPosData {
10    pub data: KeyGroup<Vector3>,
11}
12
13impl NiPosData {
14    pub fn parse<R: Read + Seek>(reader: &mut R) -> anyhow::Result<Self> {
15        Ok(reader.read_le()?)
16    }
17}