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

    Interface LogEntryPlay

    A card that a player played or failed to play.

    interface LogEntryPlay {
        action:
            | Readonly<
                Readonly<
                    {
                        identity?: Readonly<
                            { rank: 1
                            | 2
                            | 3
                            | 4
                            | 5
                            | 7; suitIndex: 0 | 1 | 2 | 3 | 4 | 5 },
                        >;
                        order: number & $brand<"CardOrder">;
                        playerIndex: 0 | 1 | 2 | 3 | 4;
                        type: "misplay";
                    },
                >,
            >
            | Readonly<
                Readonly<
                    {
                        identity?: Readonly<
                            { rank: 1
                            | 2
                            | 3
                            | 4
                            | 5
                            | 7; suitIndex: 0 | 1 | 2 | 3 | 4 | 5 },
                        >;
                        order: number & $brand<"CardOrder">;
                        playerIndex: 0 | 1 | 2 | 3 | 4;
                        type: "play";
                    },
                >,
            >;
        perspective: Perspective;
        slot: number
        | undefined;
        touched: boolean;
        turn: number;
        type: "play";
    }

    Hierarchy

    • LogEntryBase
      • LogEntryPlay
    Index
    action:
        | Readonly<
            Readonly<
                {
                    identity?: Readonly<
                        { rank: 1
                        | 2
                        | 3
                        | 4
                        | 5
                        | 7; suitIndex: 0 | 1 | 2 | 3 | 4 | 5 },
                    >;
                    order: number & $brand<"CardOrder">;
                    playerIndex: 0 | 1 | 2 | 3 | 4;
                    type: "misplay";
                },
            >,
        >
        | Readonly<
            Readonly<
                {
                    identity?: Readonly<
                        { rank: 1
                        | 2
                        | 3
                        | 4
                        | 5
                        | 7; suitIndex: 0 | 1 | 2 | 3 | 4 | 5 },
                    >;
                    order: number & $brand<"CardOrder">;
                    playerIndex: 0 | 1 | 2 | 3 | 4;
                    type: "play";
                },
            >,
        >
    perspective: Perspective
    slot: number | undefined

    The slot of the card (1 is the newest card), or undefined for a card from the deck.

    touched: boolean

    Whether a clue touched the card.

    turn: number

    The turn that the line belongs to, from 1.

    type: "play"