Skip to content

Add a custom ActionResult

Refer to the SwitchPageActionResult.ts in the backend for an example.

  1. Create a class with the name [Name]ActionResult, for example MyActionResult.
  2. Modify the class with all the data you want communicate back to the frontend.
  3. Modify the convertActionResultToGameState to decide what has to happen when this ActionResult is used.