messing arround with asset loader

Need to figure out dynamic assets
Need to switch to ron files
This commit is contained in:
2024-07-23 21:04:47 -04:00
parent 370dc552b3
commit deb778d6af
9 changed files with 64 additions and 65 deletions

View File

@@ -22,7 +22,7 @@ impl Plugin for BuildingPugin {
app.insert_resource(BuildQueue::default());
app.add_plugins(BuildingAssetPlugin).add_plugins(BuildingDatabasePlugin);
app.add_systems(Startup, init.run_if(in_state(AssetLoadState::StartLoading)));
app.add_systems(Startup, init.run_if(in_state(AssetLoadState::Loading)));
app.add_systems(Update, hq_placement.run_if(in_state(GameplayState::PlaceHQ)));
app.add_systems(PreUpdate, process_build_queue.run_if(in_state(GameplayState::Playing)));