Skip to content

Instantly share code, notes, and snippets.

@frame-lang
Created May 30, 2022 17:44
Show Gist options
  • Save frame-lang/7efe4120a97fcffa426e8d2dae7d1b30 to your computer and use it in GitHub Desktop.
Save frame-lang/7efe4120a97fcffa426e8d2dae7d1b30 to your computer and use it in GitHub Desktop.
$Working => $HandleExternalEvents
$HandleExternalEvents => $HandleControllerEvents
|tick|
trafficLight.Tick() -> "Tick" $Save ^
|systemError|
trafficLight.SystemError() -> "System\nError" $Save ^
|systemRestart|
trafficLight.SystemRestart() -> "System\nRestart" $Save ^
|end|
trafficLight.Stop() -> "End" $Save ^
$HandleControllerEvents
|initTrafficLight| initTrafficLight() ^
|enterRed| enterRed() ^
|enterGreen| enterGreen() ^
|enterYellow| enterYellow() ^
|enterFlashingRed| enterFlashingRed() ^
|startWorkingTimer| startWorkingTimer() ^
|stopWorkingTimer| stopWorkingTimer() ^
|startFlashingTimer| startFlashingTimer() ^
|stopFlashingTimer| stopFlashingTimer() ^
|changeFlashingAnimation| changeFlashingAnimation() ^
|destroyTrafficLight| destroyTrafficLight() ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment