Go back to JSON encoding
This commit is contained in:
@@ -5,9 +5,6 @@
|
||||
|
||||
module Dodge.Data.PosEvent where
|
||||
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
import Data.Binary
|
||||
import Flat
|
||||
import LinearHelp ()
|
||||
import Control.Lens
|
||||
@@ -16,9 +13,7 @@ import Data.Aeson.TH
|
||||
import Geometry.Data
|
||||
|
||||
data PosEventType = SparkSpawner
|
||||
| HackSparkSpawner
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
$($(derive [d| instance Deriving (Store PosEventType ) |]))
|
||||
|
||||
data PosEvent = PosEvent
|
||||
{ _pvType :: PosEventType
|
||||
@@ -26,7 +21,6 @@ data PosEvent = PosEvent
|
||||
, _pvPos :: Point2
|
||||
}
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
$($(derive [d| instance Deriving (Store PosEvent ) |]))
|
||||
|
||||
makeLenses ''PosEvent
|
||||
deriveJSON defaultOptions ''PosEventType
|
||||
|
||||
Reference in New Issue
Block a user