Attempt to make CWorld correct instance of Store

This commit is contained in:
2022-08-20 15:53:37 +01:00
parent e1a555ea02
commit 8571ab9254
89 changed files with 570 additions and 19 deletions
+6
View File
@@ -7,6 +7,7 @@ module Dodge.Data.Block (
module Dodge.Data.PathGraph,
) where
import LinearHelp
import Color
import Control.Lens
import Data.Aeson
@@ -16,6 +17,8 @@ import Dodge.Data.Material
import Dodge.Data.PathGraph
import Geometry
import Shape.Data
import TH.Derive
import Data.Store
data Block = Block
{ _blID :: Int
@@ -48,3 +51,6 @@ makeLenses ''Block
deriveJSON defaultOptions ''Block
deriveJSON defaultOptions ''BlockDraw
deriveJSON defaultOptions ''BlSh
$($(derive [d| instance Deriving (Store Block) |]))
$($(derive [d| instance Deriving (Store BlockDraw) |]))
$($(derive [d| instance Deriving (Store BlSh) |]))