Hiyve Components - v1.0.0
    Preparing search index...

    Props for GameEnd: the End screen, over the world.

    interface GameEndProps {
        anotherLabel?: string;
        best?: number | null;
        bonus?: GameBonus | null;
        detail?: string;
        finished?: boolean;
        headline: string;
        labels?: Partial<GameShellLabels>;
        look?: GameLookName | GameLook;
        mascot?: false | MascotName;
        onAgain?: () => void;
        onAnother?: () => void;
        onContinue?: () => void;
        reward?: ReactNode;
        score: Score;
    }
    Index

    Properties

    anotherLabel?: string

    Its words: "New river", "New path", "New train"

    best?: number | null

    The best total before this game, if there is one

    bonus?: GameBonus | null

    The game's own bonus, on its own line; added to the total

    detail?: string

    A line under it: "8 of 8 wagons on your train"

    finished?: boolean

    Whether this was a real finish, which gets the gold heading

    headline: string

    What happened, in the game's words: "You reached the jetty!"

    labels?: Partial<GameShellLabels>
    mascot?: false | MascotName
    onAgain?: () => void
    onAnother?: () => void

    A new world, freshly laid: the button shows when given

    onContinue?: () => void

    Onward: a button with a forward arrow, the main one when given

    reward?: ReactNode

    Something won, shown under the stars: a new wagon for the book, say

    score: Score

    The cards' score (scoreDeck): stars, points, right and first try