added confirmGoalDataFlag field to GameState

This commit is contained in:
Jonathan Lamothe 2019-10-01 00:02:49 -04:00
parent fc20259a48
commit 739db189ae

View File

@ -58,6 +58,7 @@ module Mtlstats.Types (
pointsAccounted, pointsAccounted,
goalBy, goalBy,
assistsBy, assistsBy,
confirmGoalDataFlag,
-- ** CreatePlayerState Lenses -- ** CreatePlayerState Lenses
cpsNumber, cpsNumber,
cpsName, cpsName,
@ -213,6 +214,7 @@ data GameState = GameState
, _assistsBy :: [Int] , _assistsBy :: [Int]
-- ^ The index numbers of the players who have assisted the most -- ^ The index numbers of the players who have assisted the most
-- recently entered goal -- recently entered goal
, _confirmGoalDataFlag :: Bool
} deriving (Eq, Show) } deriving (Eq, Show)
-- | The type of game -- | The type of game
@ -511,6 +513,7 @@ newGameState = GameState
, _pointsAccounted = 0 , _pointsAccounted = 0
, _goalBy = Nothing , _goalBy = Nothing
, _assistsBy = [] , _assistsBy = []
, _confirmGoalDataFlag = False
} }
-- | Constructor for a 'CreatePlayerState' -- | Constructor for a 'CreatePlayerState'