Unify save states
This commit is contained in:
+4
-3
@@ -78,10 +78,8 @@ data World = World
|
||||
, _pathGraph :: ~(Gr Point2 Float)
|
||||
, _pathGraphP :: ~[(Point2,Point2)]
|
||||
, _pathPoints :: ~(IM.IntMap (IM.IntMap [(Int,Point2)]))
|
||||
, _storedLevel :: Maybe World
|
||||
, _quicksaveLevel :: Maybe World
|
||||
, _savedWorlds :: M.Map SaveSlot World
|
||||
, _menuLayers :: [ScreenLayer]
|
||||
-- , _worldState :: M.Map WorldState Bool
|
||||
, _worldTriggers :: S.Set WorldTrigger
|
||||
, _carteDisplay :: !Bool
|
||||
, _carteCenter :: !Point2
|
||||
@@ -103,6 +101,9 @@ data World = World
|
||||
, _frameClock :: Int
|
||||
, _worldBounds :: Bounds
|
||||
}
|
||||
data SaveSlot = QuicksaveSlot | LevelStartSlot
|
||||
deriving (Eq,Ord)
|
||||
|
||||
data OptionScreenFlag = NormalOptions | GameOverOptions
|
||||
data ScreenLayer
|
||||
= OptionScreen
|
||||
|
||||
Reference in New Issue
Block a user