mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/logic/mod.rs')
| -rw-r--r-- | src/logic/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/logic/mod.rs b/src/logic/mod.rs index 967ca22..b8a98fc 100644 --- a/src/logic/mod.rs +++ b/src/logic/mod.rs @@ -23,7 +23,8 @@ macro_rules!match_select } impl LogicField { - #[must_use] pub fn is_readable(&self) -> bool { + #[must_use] + pub fn is_readable(&self) -> bool { match_select!( self, LogicField, @@ -73,7 +74,8 @@ impl LogicField { ) } - #[must_use] pub fn is_writable(&self) -> bool { + #[must_use] + pub fn is_writable(&self) -> bool { match_select!(self, LogicField, Enabled, Shoot, ShootP, Config, Color) } } |