#18 & massive structure overhaul
This commit is contained in:
parent
83659e69b4
commit
3b0de65de1
16 changed files with 397 additions and 221 deletions
25
lib/RPGEngine/Internals/Data/Game.hs
Normal file
25
lib/RPGEngine/Internals/Data/Game.hs
Normal file
|
@ -0,0 +1,25 @@
|
|||
-- Representation of all the game's data
|
||||
|
||||
module RPGEngine.Internals.Data.Game
|
||||
( Game(..),
|
||||
|
||||
initGame
|
||||
) where
|
||||
|
||||
import RPGEngine.Internals.Data.State
|
||||
|
||||
----------------------------- Constants ------------------------------
|
||||
|
||||
-- TODO Add more
|
||||
data Game = Game {
|
||||
-- Current state of the game
|
||||
state :: State
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
-- Initialize the game
|
||||
initGame :: Game
|
||||
initGame = Game {
|
||||
state = defaultState
|
||||
}
|
Reference in a new issue