brink_format/counting.rs
1use bitflags::bitflags;
2
3bitflags! {
4 /// Flags controlling what the runtime counts for a container.
5 #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
6 pub struct CountingFlags: u8 {
7 /// Track how many times this container has been visited.
8 const VISITS = 0x01;
9 /// Track the turn number at which this container was last visited.
10 const TURNS = 0x02;
11 /// Only count the visit/turn when the container is entered at its
12 /// first line (not when re-entered mid-way).
13 const COUNT_START_ONLY = 0x04;
14 }
15}