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 description: String,
9 pub author: String,
10}
11
12/// This carries the size information of each part of the Pak file. this is always the first 24 bytes of the file.
13#[derive(Serialize, Deserialize, Debug)]
14pub struct PakSizing {
15 pub meta_size: u64,
16 pub indices_size: u64,
17 pub vault_size: u64,
18}