Broken: refactor terminals
This commit is contained in:
@@ -17,7 +17,7 @@ doButtonEvent be = case be of
|
||||
ButtonSimpleSwith oneff offeff -> flipSwitch oneff offeff
|
||||
ButtonAccessTerminal -> accessTerminal . _btTermMID
|
||||
|
||||
flipSwitch :: WorldEffect -> WorldEffect -> Button -> World -> World
|
||||
flipSwitch :: WdWd -> WdWd -> Button -> World -> World
|
||||
flipSwitch oneff offeff bt
|
||||
| _btState bt == BtOff = doWorldEffect oneff . dosound
|
||||
. over (buttons . ix (_btID bt)) turnon
|
||||
|
||||
Reference in New Issue
Block a user