added goalBy and assistsBy to GameState
This commit is contained in:
parent
fc58b0a72b
commit
625d9c616a
|
@ -56,6 +56,8 @@ module Mtlstats.Types (
|
||||||
overtimeFlag,
|
overtimeFlag,
|
||||||
dataVerified,
|
dataVerified,
|
||||||
pointsAccounted,
|
pointsAccounted,
|
||||||
|
goalBy,
|
||||||
|
assistsBy,
|
||||||
-- ** CreatePlayerState Lenses
|
-- ** CreatePlayerState Lenses
|
||||||
cpsNumber,
|
cpsNumber,
|
||||||
cpsName,
|
cpsName,
|
||||||
|
@ -203,6 +205,11 @@ data GameState = GameState
|
||||||
, _dataVerified :: Bool
|
, _dataVerified :: Bool
|
||||||
-- ^ Set to 'True' when the user confirms the entered data
|
-- ^ Set to 'True' when the user confirms the entered data
|
||||||
, _pointsAccounted :: Int
|
, _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)
|
} deriving (Eq, Show)
|
||||||
|
|
||||||
-- | The type of game
|
-- | The type of game
|
||||||
|
@ -499,6 +506,8 @@ newGameState = GameState
|
||||||
, _overtimeFlag = Nothing
|
, _overtimeFlag = Nothing
|
||||||
, _dataVerified = False
|
, _dataVerified = False
|
||||||
, _pointsAccounted = 0
|
, _pointsAccounted = 0
|
||||||
|
, _goalBy = ""
|
||||||
|
, _assistsBy = []
|
||||||
}
|
}
|
||||||
|
|
||||||
-- | Constructor for a 'CreatePlayerState'
|
-- | Constructor for a 'CreatePlayerState'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user