Fold together useDelay and itemTriggerType
This commit is contained in:
@@ -1,18 +1,28 @@
|
||||
{-# LANGUAGE StrictData #-}
|
||||
--{-# LANGUAGE TemplateHaskell #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
module Dodge.Data.TriggerType where
|
||||
import Control.Lens
|
||||
|
||||
--import Data.Aeson
|
||||
--import Data.Aeson.TH
|
||||
|
||||
data TriggerType
|
||||
= AutoTrigger
|
||||
| HammerTrigger
|
||||
= AutoTrigger Int
|
||||
| HammerTrigger Int
|
||||
| NoTrigger
|
||||
| AlwaysSingleTrigger
|
||||
| BurstTrigger [Int]
|
||||
| VolleyGunTrigger Int
|
||||
-- | AlwaysSingleTrigger Int
|
||||
| BurstTrigger {_burstFrames :: [Int], _burstRate :: Int}
|
||||
| VolleyGunTrigger {_volleyNumBarrels::Int, _volleyRate :: Int}
|
||||
| WarmUpCoolDown
|
||||
{ _warmStart :: Int
|
||||
, _coolStart :: Int
|
||||
, _coolEnd :: Int
|
||||
}
|
||||
| WarmUpNoDelay
|
||||
{ _warmMax :: Int
|
||||
}
|
||||
deriving (Eq, Show, Read)
|
||||
makeLenses ''TriggerType
|
||||
|
||||
--deriveJSON defaultOptions ''TriggerType
|
||||
|
||||
@@ -12,14 +12,6 @@ data ItemUseDelay -- should just be Delay
|
||||
| FixedRate
|
||||
{ _rateMax :: Int
|
||||
}
|
||||
| WarmUpNoDelay
|
||||
{ _warmMax :: Int
|
||||
}
|
||||
| WarmUpCoolDown
|
||||
{ _warmStart :: Int
|
||||
, _coolStart :: Int
|
||||
, _coolEnd :: Int
|
||||
}
|
||||
deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
||||
|
||||
makeLenses ''ItemUseDelay
|
||||
|
||||
Reference in New Issue
Block a user