#[derive(Debug, Copy, Clone, PartialEq)]
pub enum AssetFormat {
WEBP,
JXR,
PNG,
JPG,
GIF,
DDS,
PVR,
PKM,
MP3,
M4A,
OPUS,
OGG,
WAV,
BLOB,
}
impl Default for AssetFormat {
fn default() -> Self {
Self::BLOB
}
}
#[derive(Default, Clone, Debug)]
pub struct AssetEntry {
pub name: String,
pub url: String,
pub format: AssetFormat,
pub bytes: usize,
}
impl AssetEntry {
pub fn new(name: String, url: String, format: AssetFormat, bytes: usize) -> Self {
Self {
name,
url,
format,
bytes,
}
}
}