protected override void ReadInternal(NMSModelHeader.SectionData Meta, BinaryReader handle) { Attributes = new AttributeDesc[Meta.Count]; for (int i = 0; i < Meta.Count; i++) { Attributes[i] = new AttributeDesc(handle); } }
protected override void ReadInternal(NMSModelHeader.SectionData Meta, BinaryReader handle) { var array = new uint[Meta.Count]; for (uint i = 0; i < Meta.Count; i++) { array[i] = handle.ReadUInt32(); } Uints = array; }
protected override void ReadInternal(NMSModelHeader.SectionData Meta, BinaryReader handle) { var array = new Quaternion[Meta.Count]; for (uint i = 0; i < Meta.Count; i++) { array[i] = new Quaternion(handle.ReadSingle(), handle.ReadSingle(), handle.ReadSingle(), handle.ReadSingle()); } Quats = array; }
protected abstract void ReadInternal(NMSModelHeader.SectionData Meta, BinaryReader handle);
public NMSModelHeader.SectionData _Meta; // used for debugging public void Read(NMSModelHeader.SectionData Meta, BinaryReader handle) { handle.BaseStream.Position = Meta.AbsOffset; ReadInternal(Meta, handle); }