Add exports

This commit is contained in:
2025-04-30 21:13:38 +01:00
parent c43aa91f1c
commit 612ae236df
+14 -9
View File
@@ -1,4 +1,9 @@
module Dodge.Room.Pillar where module Dodge.Room.Pillar (
blockPillar,
roomPillars,
roomPillarsSquare,
roomPillarsPassage,
) where
import qualified Data.Set as S import qualified Data.Set as S
import Dodge.Cleat import Dodge.Cleat
@@ -32,14 +37,14 @@ blockPillar w' h' =
smallPillar :: PSType smallPillar :: PSType
smallPillar = PutBlock defaultBlock baseBlockPane $ reverse $ square 5 smallPillar = PutBlock defaultBlock baseBlockPane $ reverse $ square 5
crossPillar :: Float -> Float -> Placement --crossPillar :: Float -> Float -> Placement
crossPillar w' h' = --crossPillar w' h' =
ps0jPushPS (aline (V2 (- w) 0) (V2 w 0)) $ -- ps0jPushPS (aline (V2 (- w) 0) (V2 w 0)) $
sps0 (aline (V2 0 (- h)) (V2 0 h)) -- sps0 (aline (V2 0 (- h)) (V2 0 h))
where -- where
w = w' - 9 -- w = w' - 9
h = h' - 9 -- h = h' - 9
aline = PutLineBlock baseBlockPane 9 -- aline = PutLineBlock baseBlockPane 9
roomPillarsSquare :: RandomGen g => State g Room roomPillarsSquare :: RandomGen g => State g Room
roomPillarsSquare = do roomPillarsSquare = do