thread time through update functions so it can be used
This commit is contained in:
@@ -2,13 +2,13 @@ structure GameUpdate =
|
||||
struct
|
||||
open GameType
|
||||
|
||||
fun update (game: GameType.game_type, input) =
|
||||
fun update (game: GameType.game_type, input, time) =
|
||||
let
|
||||
val {mode, userKeys} = game
|
||||
in
|
||||
case mode of
|
||||
LEVEL level => LevelUpdate.update (level, input, userKeys)
|
||||
| TITLE title => TitleUpdate.update (title, input, userKeys)
|
||||
| OPTIONS options => OptionsUpdate.update (options, input, userKeys)
|
||||
LEVEL level => LevelUpdate.update (level, input, userKeys, time)
|
||||
| TITLE title => TitleUpdate.update (title, input, userKeys, time)
|
||||
| OPTIONS options => OptionsUpdate.update (options, input, userKeys, time)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user