Represents an action to start a new game. If game needs a specific options to start, it can extends this action and add more fields.

NewGameAction

interface NewGameAction {
    options: GameOptions;
    type: "newGame";
}

Properties

Properties

options: GameOptions

The configuration options for the new game.

type: "newGame"

The type of the action, which is always 'newGame'.