1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PackFileRef {
pub path: String,
}
#[derive(Debug, Copy, Clone, Serialize, Deserialize)]
#[repr(C)]
pub struct FileRef {
pub category: u32,
pub pack_file: u32,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PackIndexFile {
pub archives: Vec<PackFileRef>,
pub files: BTreeMap<u32, FileRef>,
}