Trait oxygengine::prelude::AssetProtocol[][src]

pub trait AssetProtocol: Send + Sync {
    fn name(&self) -> &str;
fn on_load(&mut self, data: Vec<u8, Global>) -> AssetLoadResult; fn on_load_with_path(
        &mut self,
        _path: &str,
        data: Vec<u8, Global>
    ) -> AssetLoadResult { ... }
fn on_resume(
        &mut self,
        _meta: Option<Box<dyn Any + Send + Sync + 'static, Global>>,
        _list: &[(&str, &Asset)]
    ) -> AssetLoadResult { ... }
fn on_unload(&mut self, _asset: &Asset) -> Option<Vec<AssetVariant, Global>> { ... }
fn on_register(&mut self) { ... }
fn on_unregister(&mut self) { ... } }

Required methods

Provided methods

Implementors