added goalBy and assistsBy to GameState

This commit is contained in:
Jonathan Lamothe 2019-09-25 02:41:35 -04:00
parent fc58b0a72b
commit 625d9c616a

View File

@ -56,6 +56,8 @@ module Mtlstats.Types (
overtimeFlag,
dataVerified,
pointsAccounted,
goalBy,
assistsBy,
-- ** CreatePlayerState Lenses
cpsNumber,
cpsName,
@ -203,6 +205,11 @@ data GameState = GameState
, _dataVerified :: Bool
-- ^ Set to 'True' when the user confirms the entered data
, _pointsAccounted :: Int
-- ^ The number of game points accounted for
, _goalBy :: String
-- ^ The player who scored the most recently entered goal
, _assistsBy :: [String]
-- ^ The players who have assisted the most recently entered goal
} deriving (Eq, Show)
-- | The type of game
@ -499,6 +506,8 @@ newGameState = GameState
, _overtimeFlag = Nothing
, _dataVerified = False
, _pointsAccounted = 0
, _goalBy = ""
, _assistsBy = []
}
-- | Constructor for a 'CreatePlayerState'