Trait veloren_common_assets::AssetCombined
source · pub trait AssetCombined: AssetExt {
// Required method
fn load_and_combine(
reloading_cache: AnyCache<'static>,
specifier: &str,
) -> Result<AssetHandle<Self>, Error>;
// Provided methods
fn load_and_combine_static(
specifier: &str,
) -> Result<AssetHandle<Self>, Error> { ... }
fn load_expect_combined(
reloading_cache: AnyCache<'static>,
specifier: &str,
) -> AssetHandle<Self> { ... }
fn load_expect_combined_static(specifier: &str) -> AssetHandle<Self> { ... }
}
Expand description
Extension to AssetExt to combine Ron files from filesystem and plugins
Required Methods§
fn load_and_combine( reloading_cache: AnyCache<'static>, specifier: &str, ) -> Result<AssetHandle<Self>, Error>
Provided Methods§
sourcefn load_and_combine_static(specifier: &str) -> Result<AssetHandle<Self>, Error>
fn load_and_combine_static(specifier: &str) -> Result<AssetHandle<Self>, Error>
Load combined table without hot-reload support
fn load_expect_combined( reloading_cache: AnyCache<'static>, specifier: &str, ) -> AssetHandle<Self>
sourcefn load_expect_combined_static(specifier: &str) -> AssetHandle<Self>
fn load_expect_combined_static(specifier: &str) -> AssetHandle<Self>
Load combined table without hot-reload support, panic on error
Object Safety§
This trait is not object safe.