Introduce destructible switches

This commit is contained in:
2025-12-26 15:10:37 +00:00
parent 29394e86a3
commit 3c07069adc
7 changed files with 142 additions and 111 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ data MachineType
| McTurret {_mctTurret :: Turret}
| McStorage {_mcsType :: AmmoType, _mcsAmount :: Int}
| McDistributer {_mcdStorageMachine :: Maybe Int}
| McInterrupter
| McTrigger {_mcTriggerID :: Int}
-- | McSynthesiser
instance ShortShow MachineType where
@@ -59,7 +59,7 @@ instance ShortShow MachineType where
McTurret {} -> "McTur"
McStorage {} -> "McStor"
McDistributer {} -> "McDist"
McInterrupter {} -> "McInterrupter"
McTrigger i -> "McTrigger " <> show i
data Turret = Turret
{ _tuWeapon :: Int