Minor cleanup

This commit is contained in:
2021-11-15 02:16:17 +00:00
parent e93fa10a97
commit 59dc24aff6
5 changed files with 21 additions and 17 deletions
+3 -8
View File
@@ -1,17 +1,12 @@
module Dodge.Wire where
import Dodge.LevelGen.Data
import Dodge.Room.Link
import Geometry
import qualified Data.IntMap.Strict as IM
import Control.Lens
putWireEndInvRmShift :: Int -> (Point2,Float) -> Room -> Room
putWireEndInvRmShift i pos rm =
rm & rmEndWires %~ IM.insert i (uncurry RoomWire $ invShiftLinkBy (_rmShift rm) pos)
putWireEnd :: Int -> (Point2,Float) -> Room -> Room
putWireEnd i pos = rmEndWires %~ IM.insert i (uncurry RoomWire pos)
putWireStart :: Int -> (Point2,Float) -> Room -> Room
putWireStart i pos rm = rm
& rmStartWires %~ IM.insert i (uncurry RoomWire pos)
putWireStart i pos = rmStartWires %~ IM.insert i (uncurry RoomWire pos)