1
0
Fork 0

Asset preload structures and their impls

This commit is contained in:
Rendo 2025-02-22 01:57:53 +05:00
commit 1cdd4efd78
5 changed files with 125 additions and 5 deletions

View file

@ -0,0 +1,14 @@
use bevy::prelude::*;
use crate::asset_preloader::*;
pub struct AssetPreloadPlugin;
impl Plugin for AssetPreloadPlugin {
fn build(&self, app: &mut App) {
//app.init_resource::<AssetPreloadChecker<Image>>();
let mut preload = AssetPreload::new();
let image: AssetPreloadChecker<Image> = AssetPreloadChecker::build(&mut preload).finish();
app.insert_resource(image);
}
}