Add Asset loader, added and configured various states
This commit is contained in:
16
src/macros.rs
Normal file
16
src/macros.rs
Normal 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));
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user