17 lines
582 B
Rust
17 lines
582 B
Rust
#[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));
|
|
};
|
|
}
|