Skip to content

Instantly share code, notes, and snippets.

@object
Created June 27, 2024 18:03
Show Gist options
  • Save object/7dfa33bf17be3638d06b0a008c648f44 to your computer and use it in GitHub Desktop.
Save object/7dfa33bf17be3638d06b0a008c648f44 to your computer and use it in GitHub Desktop.
Fable workshop (2024). Step 6. Model.fs
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