We are working on some games and would like to share some common behaviors across them using a Javascript library we will be build. This will have some helpers to consolidate sound and scoring behaviors which we can handle by passing the runtime in from event sheets.
One requirement we have though is to update the game state from that javascript code - examples would be changing the current Layout or calling Layout.Restart Layout
I have looked through the documentation I can find around the javascript runtime but cannot see any references to how these higher order Construct actions can be invoked.
Thanks!