Struct bones_asset::prelude::AssetPack
source · pub struct AssetPack {
pub name: String,
pub id: AssetPackId,
pub version: Version,
pub game_version: VersionReq,
pub schemas: Vec<&'static Schema>,
pub root: UntypedHandle,
}
Expand description
An asset pack contains assets that are loaded by the game.
The game’s built-in assets are contained the the core asset pack, and mods or other assets may also be loaded.
Fields§
§name: String
The display name of the asset pack.
id: AssetPackId
The unique ID of the asset pack.
version: Version
The version number of the asset pack.
game_version: VersionReq
The game VersionReq
this asset pack is compatible with.
schemas: Vec<&'static Schema>
Schemas provided in the asset pack.
root: UntypedHandle
The root asset for the asset pack.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AssetPack
impl !RefUnwindSafe for AssetPack
impl Send for AssetPack
impl Sync for AssetPack
impl Unpin for AssetPack
impl !UnwindSafe for AssetPack
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)