Add a custom ActionResult
¶
Refer to the SwitchPageActionResult.ts
in the backend for an example.
- Create a class with the name
[Name]ActionResult
, for exampleMyActionResult
. - Modify the class with all the data you want communicate back to the frontend.
- Modify the
convertActionResultToGameState
to decide what has to happen when this ActionResult is used.