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 Data.Text
|
|
|
|
|
|
|
|
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.FontId
|
|
|
|
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-06-04 03:29:20 +00:00
|
|
|
| MenuData
|
|
|
|
{ mapMat :: Matrix TileState
|
|
|
|
, initCoords :: (Int, Int)
|
|
|
|
, imgMat :: Matrix (Maybe ImgId)
|
|
|
|
, reachPoints :: [ReachPoint]
|
|
|
|
}
|
2018-06-07 22:29:46 +00:00
|
|
|
deriving (Eq)
|