Go back to JSON encoding
This commit is contained in:
@@ -10,9 +10,6 @@ module Dodge.Data.Door (
|
||||
module Dodge.Data.WorldEffect,
|
||||
) where
|
||||
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
import Data.Binary
|
||||
import Flat
|
||||
import LinearHelp ()
|
||||
import Control.Lens
|
||||
@@ -26,14 +23,12 @@ import Geometry.Data
|
||||
|
||||
data DoorStatus = DoorOpen | DoorClosed | DoorHalfway | DoorInt Int
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
$($(derive [d| instance Deriving (Store DoorStatus ) |]))
|
||||
|
||||
data PushSource
|
||||
= PushesItself
|
||||
| PushedBy Int
|
||||
| NotPushed
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
$($(derive [d| instance Deriving (Store PushSource) |]))
|
||||
|
||||
data Door = Door
|
||||
{ _drID :: Int
|
||||
@@ -54,7 +49,6 @@ data Door = Door
|
||||
, _drObstacleType :: EdgeObstacle
|
||||
}
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
$($(derive [d| instance Deriving (Store Door ) |]))
|
||||
|
||||
makeLenses ''Door
|
||||
deriveJSON defaultOptions ''DoorStatus
|
||||
|
||||
Reference in New Issue
Block a user