mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'lemu/src/executor/mod.rs')
| -rw-r--r-- | lemu/src/executor/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lemu/src/executor/mod.rs b/lemu/src/executor/mod.rs index 7d5fc60..f436916 100644 --- a/lemu/src/executor/mod.rs +++ b/lemu/src/executor/mod.rs @@ -9,6 +9,11 @@ use std::{collections::VecDeque, io::Write, num::NonZeroUsize, pin::Pin}; #[derive(Debug, Copy, Clone)] pub struct Display(pub usize); +impl Default for Display { + fn default() -> Self { + Self(1) + } +} #[derive(Debug, Copy, Clone)] // negative means bank, positive means cell pub struct Memory(pub(crate) i8); |