mc_launchermeta/asset_index.rs
1////////////////////////////////////////////////////////////////////////////////
2// Copyright (c) 2023. Rob Bailey /
3// This Source Code Form is subject to the terms of the Mozilla Public /
4// License, v. 2.0. If a copy of the MPL was not distributed with this /
5// file, You can obtain one at https://mozilla.org/MPL/2.0/. /
6////////////////////////////////////////////////////////////////////////////////
7
8use serde::{Deserialize, Serialize};
9
10/// Information about assets used by the game
11#[derive(Debug, Clone, Eq, PartialEq, Hash, Serialize, Deserialize)]
12pub struct AssetIndex {
13 pub objects: Vec<Object>,
14 pub map_to_resources: bool,
15}
16
17#[derive(Debug, Clone, Eq, PartialEq, Hash, Serialize, Deserialize)]
18pub struct Object {
19 pub hash: String,
20 pub size: u64,
21}