Start simplifying/removing Wall records
This commit is contained in:
@@ -29,19 +29,23 @@ data PushSource
|
||||
data Door = Door
|
||||
{ _drID :: Int
|
||||
, _drTrigger :: WdBl
|
||||
, _drMech :: DrWdWd
|
||||
, _drUpdate :: DoorUpdate
|
||||
, _drZeroPos :: (Point2,Float)
|
||||
, _drOnePos :: (Point2,Float)
|
||||
, _drLerp :: Float
|
||||
, _drFootPrint :: IM.IntMap (Point2,Point2)
|
||||
, _drHP :: Int
|
||||
, _drSpeed :: Float
|
||||
, _drPushedBy :: PushSource
|
||||
, _drPushes :: Maybe Int
|
||||
, _drMounts :: [MountedObject]
|
||||
}
|
||||
|
||||
data DoorUpdate = DoorDoNothing | DoorLerp {_drLerpSpeed :: Float}
|
||||
|
||||
|
||||
makeLenses ''Door
|
||||
makeLenses ''DoorUpdate
|
||||
--deriveJSON defaultOptions ''DoorStatus
|
||||
deriveJSON defaultOptions ''DoorUpdate
|
||||
deriveJSON defaultOptions ''PushSource
|
||||
deriveJSON defaultOptions ''Door
|
||||
|
||||
Reference in New Issue
Block a user