Files
loop/src/Dodge/Data/Flame.hs
T

20 lines
373 B
Haskell

{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
module Dodge.Data.Flame where
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
import Geometry.Data
data Flame = Flame
{ _flTimer :: Int
, _flPos :: Point2
, _flVel :: Point2
}
deriving (Eq, Ord, Show, Read) --Generic, Flat)
makeLenses ''Flame
deriveJSON defaultOptions ''Flame