// SPDX-License-Identifier: AGPL-3.0-or-later
package preservation;
/** Source src/st/st_update.h callback gate. Camera/stun/palette bookkeeping
 * precedes it; HitDetection and immune entities continue while time stops. */
public final class StageUpdateGate {
    private StageUpdateGate() {}
    public static boolean shouldRun(int step,int flags,boolean stopped,int timer){return step==0||!stopped||(flags&(0x2000|0x100))!=0||(flags&0x200)!=0&&(timer&3)==0;}
}
