1 2 3 4 5 6 7 8 9 10 11 12 13
//! Access to the game's embedded files.
//!
//! ## Overview
//!
//! As described in the [`asset_manager`](../index.html) page, this file contains the actual access API for the game's embedded files.
//! To see how to use this, check out the [`rust-embed`](https://github.com/pyros2097/rust-embed) README.
/// This structure is dynamically packed with the contents of `dist` at compile time
///
/// This process allows us to only distribute a single binary, and have all the game assets stored in memory automatically.
/// The downside of this process is that the game will require a decent amount of RAM on the client's machine (and x64).
#[derive(rust_embed::RustEmbed)]
#[folder = "../dist"]
pub struct InternalData;