Polymorphise meta tree labels
This commit is contained in:
@@ -9,14 +9,17 @@ import Dodge.Tree.Compose.Data
|
||||
import Control.Monad.State
|
||||
import Control.Lens
|
||||
import System.Random
|
||||
|
||||
type MTRS = MetaTree Room String
|
||||
|
||||
data Annotation
|
||||
= ModifyTree (MetaTree Room -> MetaTree Room) Annotation
|
||||
= ModifyTree (MetaTree Room String -> MetaTree Room String) Annotation
|
||||
| OnwardList [Annotation]
|
||||
| IntAnno (Int -> Annotation)
|
||||
| SpecificRoom (State StdGen (MetaTree Room))
|
||||
| SpecificRoom (State StdGen (MetaTree Room String))
|
||||
| PassthroughLockKeyLists
|
||||
[(Int -> State StdGen (MetaTree Room), State StdGen ItemBaseType)]
|
||||
[(ItemBaseType, State StdGen (MetaTree Room))]
|
||||
[(Int -> State StdGen (MetaTree Room String), State StdGen ItemBaseType)]
|
||||
[(ItemBaseType, State StdGen (MetaTree Room String))]
|
||||
Int
|
||||
|
||||
makeLenses ''Annotation
|
||||
|
||||
Reference in New Issue
Block a user