Commit before improving logging of annotations

This commit is contained in:
2022-06-12 17:56:28 +01:00
parent eeec9248bb
commit fa1e3ef2f5
6 changed files with 35 additions and 17 deletions
+10 -2
View File
@@ -13,7 +13,7 @@ import Dodge.Annotation.Data
import LensHelp
--import Control.Lens
--import Data.Maybe
import Data.Maybe
{- | Add one corridor between each parent-child link of a tree of annotations. -}
--padWithCorridors :: Annotation -> Annotation
@@ -48,11 +48,19 @@ annoToRoomTree' an = case an of
OnwardList ans -> do
mts <- mapM annoToRoomTree' ans
return $ foldr1 attachOnward mts
IntAnno' f -> do
IntAnno f -> do
(g,i) <- get
put (g,i+1)
annoToRoomTree' (f i)
PadWith r an -> annoToRoomTree' an
PassthroughLockKeyLists ls ks i -> zoom _1 $ do
(functionlockroom,randomitemidentity) <- takeOne ls
lr <- functionlockroom i
ii <- randomitemidentity
keyroom <- fromJust $ lookup ii ks
return $ MTree ("PassthroughLockKeyLists-"++show ii)
(MTree "" lr [MBranch "" (toLabel' i) keyroom])
[]
--annoToRoomTree :: Annotation -> State StdGen (MetaTree Room)
--annoToRoomTree an = case an of