Move button data

This commit is contained in:
2022-07-21 18:22:08 +01:00
parent aabd8a2cb8
commit b58444f931
16 changed files with 185 additions and 89 deletions
+12
View File
@@ -0,0 +1,12 @@
module Dodge.WorldEffect where
import Dodge.Data
import Dodge.Placement.Instance.Terminal
import Control.Lens
doWorldEffect :: WorldEffect -> World -> World
doWorldEffect we = case we of
NoWorldEffect -> id
SetTrigger bool tid -> triggers . ix tid .~ bool
SetLSCol col lsid -> lightSources . ix lsid . lsParam . lsCol .~ col
AccessTerminal mtmid -> accessTerminal mtmid