summaryrefslogtreecommitdiff
path: root/src/content/materials/powder.rs
blob: 8c916e4134f4ba8c83763d9aa14cb37aa4543643 (plain)
1
2
3
4
5
6
7
8
9
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),
    ])
}