Interface ReplayOptions

Description

Replay options

interface ReplayOptions {
    actions: GameActionModel[];
    game: GameModel;
    onActionsChange?: ((actions) => void);
    onGameStateChange?: ((gameState) => void);
}

Properties

actions: GameActionModel[]

Description

Actions

game: GameModel

Description

Game

onActionsChange?: ((actions) => void)

Type declaration

    • (actions): void
    • Parameters

      Returns void

      Void

      Description

      On actions change

onGameStateChange?: ((gameState) => void)

Type declaration

    • (gameState): void
    • Parameters

      • gameState: any

        Game state

      Returns void

      Void

      Description

      On game state change

Generated using TypeDoc