Add files

This commit is contained in:
2025-01-02 11:16:57 +00:00
parent 9a8645c2be
commit 8bfaa12ea7
4 changed files with 72 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
module Dodge.Data.Wall.Structure
where
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
data WallStructure
= StandaloneWall
| DoorPart {_wsDoor :: Int}
| MachinePart {_wsMachine :: Int}
| BlockPart {_wsBlock :: Int}
| CreaturePart { _wlStCreature :: Int }
deriving (Eq, Ord, Show, Read) --Generic, Flat)
makeLenses ''WallStructure
deriveJSON defaultOptions ''WallStructure