Files
sml-projects/game-sml/fcore/game-update.sml
Humza Shahid da8790f0b6 Add 'game-sml/' from commit '113c3e67abe635f714f972a1e2ab0e4b24ff10f4'
git-subtree-dir: game-sml
git-subtree-mainline: aa5357714d
git-subtree-split: 113c3e67ab
2026-04-24 00:38:14 +01:00

15 lines
423 B
Standard ML

structure GameUpdate =
struct
open GameType
fun update (game: GameType.game_type, input, time) =
let
val {mode, userKeys, saveKeys = _} = game
in
case mode of
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