content: module Configs.All.Enemy.Bat
      ( BatEnemyConfig(..)
      ) where
  
  import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON)
  import GHC.Generics     (Generic)
  
  import Attack.Util
  import Enemy.DeathEffectData.Types
  import Enemy.HurtEffectData.Types
  import Enemy.SpawnEffectData.Types
  import Util
  import Window.Graphics.Util
  
  data BatEnemyConfig = BatEnemyConfig
      { _health  :: Health
      , _width   :: Float
      , _height  :: Float
  
      , _riseRecoverVelY             :: VelY
      , _idleSecs                    :: Secs
      , _patrolSpeed                 :: Speed
      , _staggerThreshold            :: Stagger
      , _patrolAttackCooldown        :: Secs
      , _tauntedPatrolAttackCooldown :: Secs
  
      , _tauntedUnderlayDrawScale    :: DrawScale
      , _groundImpactEffectDrawScale :: DrawScale
      , _wallImpactEffectDrawScale   :: DrawScale
  
      , _hurtEffectData  :: EnemyHurtEffectData
      , _deathEffectData :: EnemyDeathEffectData
      , _spawnEffectData :: EnemySpawnEffectData
      }
      deriving Generic
  
  instance FromJSON BatEnemyConfig where
      parseJSON = genericParseJSON aesonFieldDropUnderscore
  