add a group of tables
This commit is contained in:
parent
d57e502c74
commit
173494c568
1 changed files with 22 additions and 2 deletions
|
@ -10,6 +10,7 @@ import Types.UserData
|
||||||
data Cluster
|
data Cluster
|
||||||
= ClusterBox1
|
= ClusterBox1
|
||||||
| ClusterCornerTable
|
| ClusterCornerTable
|
||||||
|
| ClusterTableGroup
|
||||||
deriving (Enum, Bounded)
|
deriving (Enum, Bounded)
|
||||||
|
|
||||||
clusterMat :: Cluster -> Matrix (Maybe ImgId)
|
clusterMat :: Cluster -> Matrix (Maybe ImgId)
|
||||||
|
@ -25,10 +26,29 @@ clusterMat ClusterCornerTable =
|
||||||
, [Just ImgEmpty, Just ImgEmpty , Just ImgMiscTable1]
|
, [Just ImgEmpty, Just ImgEmpty , Just ImgMiscTable1]
|
||||||
, [Just ImgEmpty, Just ImgEmpty , Just ImgEmpty]
|
, [Just ImgEmpty, Just ImgEmpty , Just ImgEmpty]
|
||||||
]
|
]
|
||||||
|
clusterMat ClusterTableGroup =
|
||||||
|
M.fromLists
|
||||||
|
[ [ Just ImgEmpty, Just ImgMiscTable2, Just ImgMiscTableCorner
|
||||||
|
, Just ImgEmpty, Just ImgMiscTable2, Just ImgMiscTableCorner
|
||||||
|
]
|
||||||
|
, [ Just ImgEmpty, Just ImgEmpty, Just ImgMiscTable1
|
||||||
|
, Just ImgEmpty, Just ImgEmpty, Just ImgMiscTable1
|
||||||
|
]
|
||||||
|
, [ Just ImgEmpty, Just ImgEmpty, Just ImgEmpty
|
||||||
|
, Just ImgEmpty, Just ImgEmpty, Just ImgEmpty
|
||||||
|
]
|
||||||
|
, [ Nothing, Nothing, Nothing
|
||||||
|
, Just ImgEmpty, Just ImgMiscTable2, Just ImgMiscTableCorner
|
||||||
|
]
|
||||||
|
, [ Nothing, Nothing, Nothing
|
||||||
|
, Just ImgEmpty, Just ImgEmpty, Just ImgMiscTable1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
clusterRoom :: Cluster -> TileState
|
clusterRoom :: Cluster -> TileState
|
||||||
clusterRoom ClusterBox1 = Offi
|
clusterRoom ClusterBox1 = Offi
|
||||||
clusterRoom ClusterCornerTable = Offi
|
clusterRoom ClusterCornerTable = Offi
|
||||||
|
clusterRoom ClusterTableGroup = Offi
|
||||||
|
|
||||||
instance Size Cluster where
|
instance Size Cluster where
|
||||||
size c =
|
size c =
|
||||||
|
|
Loading…
Reference in a new issue