Created
June 27, 2024 18:03
-
-
Save object/7dfa33bf17be3638d06b0a008c648f44 to your computer and use it in GitHub Desktop.
Fable workshop (2024). Step 6. Model.fs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Model | |
[<RequireQualifiedAccess>] | |
type EventSet = | |
| Small | |
| Large | |
type Model = | |
{ EventSet: EventSet | |
PlaybackDelay : int | |
IsPlaying : bool | |
Events : string array | |
EventIndex : int | |
Error : string } | |
static member Empty = | |
{ EventSet = EventSet.Small | |
PlaybackDelay = 2000 | |
IsPlaying = false | |
Events = Array.empty | |
EventIndex = -1 | |
Error = "" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment