Introduce idea of world event flags

This commit is contained in:
2023-02-23 11:46:45 +00:00
parent da49d7003e
commit fc0fd5fa37
7 changed files with 87 additions and 60 deletions
+6
View File
@@ -13,6 +13,7 @@ module Dodge.Data.World (
module Dodge.Data.Input,
) where
import Data.Set (Set)
import Dodge.Data.SaveSlot
import Control.Lens
import qualified Data.Map.Strict as M
@@ -24,6 +25,10 @@ import Dodge.Data.SoundOrigin
import Sound.Data
import System.Random
data WorldEventFlag = InventoryChange
| CombineInventoryChange
deriving (Eq,Ord,Enum,Bounded)
data World = World
{ _cWorld :: CWorld
, _randGen :: StdGen
@@ -33,6 +38,7 @@ data World = World
, _testFloat :: Float
, _rbOptions :: RightButtonOptions
, _hud :: HUD
, _worldEventFlags :: Set WorldEventFlag
}
-- deriving (Eq, Ord, Show, Read) --Generic, Flat)