Private
convertConvert the result of an action to a type of GameState
.
Optional
actionResult: ActionResultResult of an action, can be undefined
.
A type of GameState
representing the result of the action or undefined
when something went wrong.
Private
convertConvert an action instance into an action reference for the client application
Action instance to convert
Action reference for the client application
Private
convertConvert a game object instance into a game object reference for the client application
Game object instance to convert
Game object reference for the client application
Private
convertConvert a talk choice into an action reference for the client application
Action instance to convert
Choice instance to convert
Action reference for the client application
Private
executeExecute the requested action and convert the result to a type of GameState
.
Alias of action to execute
Optional
gameObjectAliases: string[]Optional list of game object aliases to execute the action on
A type of GameState
representing the result of the action or undefined
when something went wrong.
Controller to handle all game related requests