Cleanup combining code, flatten modules

This commit is contained in:
2024-10-01 10:01:21 +01:00
parent f69d150e00
commit 87cbaf911f
17 changed files with 143 additions and 173 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ instance Functor (LabelDoubleTree b) where
instance Bifunctor LabelDoubleTree where
second = fmap
first f (LDT x l r) = LDT x (map (first f . second (first f)) l)
(map (first f . second (first f)) r)
first f (LDT x l r) = LDT x (map (bimap f (first f)) l)
(map (bimap f (first f)) r)
makeLenses ''DoubleTree
makeLenses ''LabelDoubleTree
-19
View File
@@ -5,12 +5,10 @@
module Dodge.Data.Item.Params where
import Color
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
import Dodge.Data.ArcStep
--import Dodge.Data.Beam
data ItemParams
= NoParams
@@ -20,23 +18,6 @@ data ItemParams
{_shrinkGunStatus :: ShrinkGunStatus}
| FlatShieldParams
{_flatShieldWlMIX :: Maybe Int}
| Refracting
{ _phaseV :: Float
, _lasColor :: Color
, _lasColor2 :: Color
, _lasCycle :: Int
, _lasDamage :: Int
}
-- | DualBeam
-- { _phaseV :: Float
-- , _lasColor :: Color
-- , _lasColor2 :: Color
-- , _lasCycle :: Int
-- , _lasDamage :: Int
-- , _lasBeam :: BeamType
-- , _subParams :: Maybe ItemParams
-- , _dbGap :: Float
-- }
| Arcing
{ _currentArc :: Maybe [ArcStep]
, _arcSize :: Float