Add Asset loader, added and configured various states

This commit is contained in:
2025-07-01 12:56:31 -04:00
parent f88e615aee
commit 570ed86c4a
27 changed files with 975 additions and 803 deletions

16
src/macros.rs Normal file
View File

@@ -0,0 +1,16 @@
#[macro_export]
macro_rules! configure_sets {
(
$app: expr,
$system_set: expr,
$condition: expr
) => {
$app.configure_sets(PreUpdate, $system_set.run_if($condition))
.configure_sets(Update, $system_set.run_if($condition))
.configure_sets(PostUpdate, $system_set.run_if($condition))
.configure_sets(Last, $system_set.run_if($condition));
$app.configure_sets(FixedPreUpdate, $system_set.run_if($condition))
.configure_sets(FixedUpdate, $system_set.run_if($condition))
.configure_sets(FixedPostUpdate, $system_set.run_if($condition));
};
}