@hanabi-live/game
    Preparing search index...

    Interface ActionGameOver

    interface ActionGameOver {
        endCondition: EndCondition;
        playerIndex: PlayerIndex;
        type: "gameOver";
        votes: null | readonly PlayerIndex[];
    }
    Index

    Properties

    endCondition: EndCondition
    playerIndex: PlayerIndex
    type: "gameOver"
    votes: null | readonly PlayerIndex[]

    In a normal game, the votes array will be filled with the indices of the players who voted to terminate the game. In a replay, votes will be equal to null because the server does not store who voted to kill the game in the database.