30 lines
685 B
Haskell
30 lines
685 B
Haskell
{-# LANGUAGE StrictData #-}
|
|
{-# LANGUAGE TemplateHaskell #-}
|
|
|
|
module Dodge.Data.RadarSweep (
|
|
module Dodge.Data.RadarSweep,
|
|
module Dodge.Data.ObjectType,
|
|
) where
|
|
|
|
import Dodge.Data.Item.Location
|
|
import NewInt
|
|
import Control.Lens
|
|
import Data.Aeson
|
|
import Data.Aeson.TH
|
|
import Dodge.Data.ObjectType
|
|
import Geometry.Data
|
|
|
|
data RadarSweep = RadarSweep
|
|
{ _rsPos :: Point2
|
|
, _rsRad :: Float
|
|
, _rsObject :: ObjectType
|
|
, _rsTimer :: Int
|
|
, _rsMapper :: Maybe (NewInt ItmInt)
|
|
, _rsAR :: Maybe (NewInt ItmInt)
|
|
, _rsSource :: NewInt ItmInt
|
|
}
|
|
deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
|
|
|
makeLenses ''RadarSweep
|
|
deriveJSON defaultOptions ''RadarSweep
|