Struct amethyst_assets::Directory
[−]
[src]
pub struct Directory { /* fields omitted */ }
Directory store.
Please note that there is a default directory storage
inside the Loader
, which is automatically used when you call
load
. In case you want another, second, directory for assets,
you can instantiate one yourself, too. Please use Loader::load_from
then.
Methods
impl Directory
[src]
Trait Implementations
impl Debug for Directory
[src]
impl Store for Directory
[src]
type Error = IoError
The error that may occur when calling modified
or load
.
type Result = Result<Vec<u8>, IoError>
The result type of load
.
fn modified(&self, category: &str, id: &str, ext: &str) -> Result<u64, IoError>
This is called to check if an asset has been modified. Read more
fn load(
&self,
category: &str,
name: &str,
ext: &str
) -> Result<Vec<u8>, IoError>
&self,
category: &str,
name: &str,
ext: &str
) -> Result<Vec<u8>, IoError>
Loads the bytes given a category, id and extension of the asset. Read more