units wip
This commit is contained in:
10
game/units/src/assets/unit_database.rs
Normal file
10
game/units/src/assets/unit_database.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use bevy::prelude::*;
|
||||
use bevy_asset_loader::asset_collection::AssetCollection;
|
||||
|
||||
use super::unit_asset::UnitAsset;
|
||||
|
||||
#[derive(Resource, AssetCollection)]
|
||||
pub struct UnitDatabase {
|
||||
#[asset(key = "units", collection(typed))]
|
||||
pub units: Vec<Handle<UnitAsset>>,
|
||||
}
|
||||
Reference in New Issue
Block a user