diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-02-25 03:16:44 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-02-25 03:16:44 +0100 |
commit | c23e63e66786410f53b9460a6456b7c893d2a234 (patch) | |
tree | 213a204572b94a9a864d9da9109a9f2a3f95a6ae /Game.hs | |
parent | b4c3367c63459607f0919e77998d5405634e2003 (diff) | |
download | htanks-c23e63e66786410f53b9460a6456b7c893d2a234.tar htanks-c23e63e66786410f53b9460a6456b7c893d2a234.zip |
Cache textures in game state
Diffstat (limited to 'Game.hs')
-rw-r--r-- | Game.hs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -7,17 +7,19 @@ module Game ( GameState(..) import Level import Tank +import Texture import Control.Monad import Control.Monad.State +import qualified Data.Map as M data GameState = GameState - { level :: !Level - , tanks :: ![Tank] + { level :: !Level + , tanks :: ![Tank] + , textures :: !(M.Map Texture TextureObject) } deriving (Show) - newtype Game a = Game (StateT GameState IO a) deriving (Monad, MonadIO, MonadState GameState) |