Commit before changing block type

This commit is contained in:
2021-10-19 21:11:02 +01:00
parent 982c8d81e1
commit d136fd910c
3 changed files with 16 additions and 5 deletions
+8
View File
@@ -57,6 +57,7 @@ data World = World
, _particles :: ![Particle]
, _walls :: !(IM.IntMap Wall)
, _doors :: IM.IntMap Door
, _blocks :: IM.IntMap Block'
, _wallsZone :: Zone (IM.IntMap Wall)
, _forceFields :: IM.IntMap ForceField
, _floorItems :: IM.IntMap FloorItem
@@ -535,6 +536,12 @@ data Prop
, _pjTimer :: Int
}
data Either3 a b c = E3x1 a | E3x2 b | E3x3 c
data Block' = Block'
{ _blID :: Int
, _blWallIDs :: [Int]
, _blHPs :: [Int]
, _blShadows' :: [Int]
}
data Door = Door
{ _drID :: Int
, _drWallIDs :: [Int]
@@ -765,6 +772,7 @@ makeLenses ''CrGroupParams
makeLenses ''CrMvType
makeLenses ''Intention
makeLenses ''Door
makeLenses ''Block'
makeLenses ''Zone
numColor :: Int -> Color
numColor 0 = toV4 (1,0,0,1)