mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 03:37:47 +00:00
Begin work for parsing binary havok files
This commit is contained in:
parent
f036f741a9
commit
52f889bb79
1 changed files with 26 additions and 0 deletions
|
@ -1,7 +1,33 @@
|
|||
use binrw::{binread, until_eof};
|
||||
use crate::gamedata::MemoryBuffer;
|
||||
use glam::Mat4;
|
||||
use hard_xml::XmlRead;
|
||||
|
||||
#[binread]
|
||||
struct SKLB_v1 {
|
||||
unk_offset: i16,
|
||||
havok_offset: i16
|
||||
}
|
||||
|
||||
#[binread]
|
||||
struct SKLB_v2 {
|
||||
unk_offset: i32,
|
||||
havok_offset: i32
|
||||
}
|
||||
|
||||
#[binread]
|
||||
#[br(magic = 0x736B6C62i32)]
|
||||
struct SKLB {
|
||||
version_one: i16,
|
||||
version_two: i16,
|
||||
havok_offset: i32,
|
||||
|
||||
#[br(count = havok_offset)]
|
||||
raw_header: Vec<u8>,
|
||||
#[br(parse_with = until_eof)]
|
||||
raw_data: Vec<u8>
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Bone {
|
||||
pub name: String,
|
||||
|
|
Loading…
Add table
Reference in a new issue