pak_db/meta.rs
1use serde::{Deserialize, Serialize};
2
3/// The metadata for a Pak file. Each pak file has this data embedded within the header.
4#[derive(Serialize, Deserialize)]
5pub struct PakMeta {
6 pub name: String,
7 pub version: String,
8 pub pak_version : String,
9 pub description: String,
10 pub author: String,
11 pub identifier : String,
12 pub(crate) extra : Vec<u8>,
13}
14
15/// This carries the size information of each part of the Pak file. this is always the first 32 bytes of the file.
16#[derive(Serialize, Deserialize, Debug)]
17pub struct PakSizing {
18 pub meta_size: u64,
19 pub indices_size: u64,
20 pub vault_size: u64,
21 pub list_size: u64,
22}