summaryrefslogtreecommitdiff
path: root/src/content/materials/powder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/materials/powder.rs')
-rw-r--r--src/content/materials/powder.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/content/materials/powder.rs b/src/content/materials/powder.rs
new file mode 100644
index 0000000..8c916e4
--- /dev/null
+++ b/src/content/materials/powder.rs
@@ -0,0 +1,10 @@
+use crate::sim::cell_manager::sim::{PostUpdateAction, UpdateCtx};
+
+#[inline]
+pub fn sim_update(ctx: &mut UpdateCtx) -> PostUpdateAction {
+ ctx.swap_or_settle(&[
+ (0, 1),
+ (-1 + 2 * ctx.seqno_parity as i32, 1),
+ (1 - 2 * ctx.seqno_parity as i32, 1),
+ ])
+}