2018-06-04 03:29:20 +00:00
|
|
|
module Types.StateData where
|
|
|
|
|
|
|
|
import Data.Matrix
|
2018-06-08 23:17:03 +00:00
|
|
|
import Data.Map
|
|
|
|
|
|
|
|
import NanoVG
|
2018-06-04 03:29:20 +00:00
|
|
|
|
|
|
|
import Types.ReachPoint
|
|
|
|
import Types.Map
|
|
|
|
import Types.ImgId
|
2018-06-08 23:17:03 +00:00
|
|
|
import Types.Animation
|
2018-06-04 03:29:20 +00:00
|
|
|
|
|
|
|
data StateData
|
2018-06-07 22:29:46 +00:00
|
|
|
= None
|
2018-06-08 23:17:03 +00:00
|
|
|
| LoadData
|
|
|
|
{ loadAssetImages :: Map ImgId Image
|
|
|
|
, loadAssetAnims :: Map AnimId Animation
|
2018-10-08 21:36:52 +00:00
|
|
|
, loadAssetIcons :: Map IconId Image
|
2018-06-08 23:17:03 +00:00
|
|
|
}
|
2018-06-25 21:59:12 +00:00
|
|
|
| MainData
|
2018-06-25 21:45:53 +00:00
|
|
|
{ mapMat :: Matrix TileState
|
|
|
|
, imgMat :: Matrix (Maybe ImgId)
|
|
|
|
, reachPoints :: [ReachPoint]
|
2018-06-28 19:07:58 +00:00
|
|
|
, mmImgMat :: Matrix (Maybe ImgId)
|
2018-06-04 03:29:20 +00:00
|
|
|
}
|
2018-06-07 22:29:46 +00:00
|
|
|
deriving (Eq)
|