21 lines
430 B
Haskell
21 lines
430 B
Haskell
{-# LANGUAGE StrictData #-}
|
|
{-# LANGUAGE TemplateHaskell #-}
|
|
|
|
module Dodge.Data.TractorBeam where
|
|
|
|
import Control.Lens
|
|
import Data.Aeson
|
|
import Data.Aeson.TH
|
|
import Geometry.Data
|
|
|
|
data TractorBeam = TractorBeam
|
|
{ _tbPos :: Point2
|
|
, _tbStartPos :: Point2
|
|
, _tbVel :: Point2
|
|
, _tbTime :: Int
|
|
}
|
|
deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
|
|
|
makeLenses ''TractorBeam
|
|
deriveJSON defaultOptions ''TractorBeam
|