added gameGoalieAssigned field to GameState
This commit is contained in:
parent
8e74764cab
commit
b0cf9a83a1
|
@ -74,6 +74,7 @@ module Mtlstats.Types (
|
||||||
goalieMinsPlayed,
|
goalieMinsPlayed,
|
||||||
goalsAllowed,
|
goalsAllowed,
|
||||||
goaliesRecorded,
|
goaliesRecorded,
|
||||||
|
gameGoalieAssigned,
|
||||||
-- ** CreatePlayerState Lenses
|
-- ** CreatePlayerState Lenses
|
||||||
cpsNumber,
|
cpsNumber,
|
||||||
cpsName,
|
cpsName,
|
||||||
|
@ -274,6 +275,9 @@ data GameState = GameState
|
||||||
-- the game
|
-- the game
|
||||||
, _goaliesRecorded :: Bool
|
, _goaliesRecorded :: Bool
|
||||||
-- ^ Set when the user confirms that all goalie info has been entered
|
-- ^ Set when the user confirms that all goalie info has been entered
|
||||||
|
, _gameGoalieAssigned :: Bool
|
||||||
|
-- ^ Set to 'True' when the goalie has been selected who will be
|
||||||
|
-- given the win/loss/tie
|
||||||
} deriving (Eq, Show)
|
} deriving (Eq, Show)
|
||||||
|
|
||||||
-- | The type of game
|
-- | The type of game
|
||||||
|
@ -645,6 +649,7 @@ newGameState = GameState
|
||||||
, _goalieMinsPlayed = Nothing
|
, _goalieMinsPlayed = Nothing
|
||||||
, _goalsAllowed = Nothing
|
, _goalsAllowed = Nothing
|
||||||
, _goaliesRecorded = False
|
, _goaliesRecorded = False
|
||||||
|
, _gameGoalieAssigned = False
|
||||||
}
|
}
|
||||||
|
|
||||||
-- | Constructor for a 'CreatePlayerState'
|
-- | Constructor for a 'CreatePlayerState'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user