21 lines
437 B
Haskell
21 lines
437 B
Haskell
{-# LANGUAGE StrictData #-}
|
|
{-# LANGUAGE TemplateHaskell #-}
|
|
|
|
module Dodge.Data.ForegroundShape where
|
|
|
|
import Control.Lens
|
|
import Data.Aeson
|
|
import Data.Aeson.TH
|
|
import Geometry
|
|
import ShapePicture
|
|
|
|
data ForegroundShape = ForegroundShape
|
|
{ _fsPos :: Point2
|
|
, _fsDir :: Float
|
|
, _fsSPic :: SPic
|
|
}
|
|
deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
|
|
|
makeLenses ''ForegroundShape
|
|
deriveJSON defaultOptions ''ForegroundShape
|