Work towards making world read/showable
This commit is contained in:
@@ -20,8 +20,8 @@ import Control.Lens
|
||||
|
||||
import qualified Streaming.Prelude as S
|
||||
|
||||
colCrsWalls :: Configuration -> World -> World
|
||||
colCrsWalls cfig w = w & creatures %~ fmap (noclipCheck cfig w)
|
||||
colCrsWalls :: Universe -> Universe
|
||||
colCrsWalls uv = uv & uvWorld . creatures %~ fmap (noclipCheck (_uvConfig uv) (_uvWorld uv))
|
||||
|
||||
noclipCheck :: Configuration -> World -> Creature -> Creature
|
||||
noclipCheck cfig w c
|
||||
|
||||
Reference in New Issue
Block a user