pub fn start_asset_daemon(asset_dirs: Vec<PathBuf>) {
    let db_path = ".assets_db";
    let address = "127.0.0.1:9999";

    let mut importer_map = ImporterMap::default();
    let mut importers = default_importers();

    importers.push(("prefab", Box::new(PrefabImporter::default())));

    importers.extend(get_source_importers());

    for (ext, importer) in importers {
        info!("Adding importer for ext {}", ext);
        importer_map.insert(ext, importer);
    }

    AssetDaemon {
        db_dir: PathBuf::from(db_path),
        address: address.parse().unwrap(),
        importers: importer_map,
        importer_contexts: default_importer_contexts(),
        asset_dirs,
    }
    .run();
}
/// starts the asset thread with distill_daemon
starts the asset thread with distill_daemon
starts the asset thread with distill_daemon
pub fn start_asset_daemon(asset_dirs: Vec<PathBuf>) {
    let db_path = ".assets_db";
    let address = "127.0.0.1:9999";
    let mut importer_map = ImporterMap::default();
    let mut importers = default_importers();
    importers.push(("prefab", Box::new(PrefabImporter::default())));
    importers.extend(get_source_importers());
    for (ext, importer) in importers {
        info!("Adding importer for ext {}", ext);
        importer_map.insert(ext, importer);
    }
    AssetDaemon {
        db_dir: PathBuf::from(db_path),
        address: address.parse().unwrap(),
        importers: importer_map,
        importer_contexts: default_importer_contexts(),
        asset_dirs,
    }
    .run();
}
pub fn start_asset_daemon ( asset_dirs : Vec < PathBuf > ) { let db_path = " " ; let address = " " ; let mut importer_map = ImporterMap :: default ( ) ; let mut importers = default_importers ( ) ; importers . push ( ( " " , Box :: new ( PrefabImporter :: default ( ) ) ) ) ; importers . extend ( get_source_importers ( ) ) ; for ( ext , importer ) in importers { info ! ( " " ext ) ; importer_map . insert ( ext , importer ) ; } AssetDaemon { db_dir : PathBuf :: from ( db_path ) , address : address . parse ( ) . unwrap ( ) , importers : importer_map , importer_contexts : default_importer_contexts ( ) , asset_dirs , } . run ( ) ; }
starts the asset thread with distill_daemon
starts the asset thread with distill_daemon
asset_dirs
Vec<PathBuf>
asset_dirs
Vec<PathBuf>