RBWCM-SDK Documentation - v1.1.0
    Preparing search index...

    Class GamesManager

    Manages API operations related to Games (Matches). Handles fetching match history, scoring, cancelling, and undoing game results.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    client: RankedClient

    Methods

    • Forcibly cancels an ongoing game without affecting player ELO ratings.

      Parameters

      • gameId: number

        The ID of the game to cancel.

      • dto: CancelGameDto

        The payload containing the cancellation reason.

      Returns Promise<{ message: string }>

      A promise resolving to a success message.

    • Submits the final results of an active game, calculating ELO changes.

      Parameters

      • gameId: number

        The ID of the game to score.

      • dto: ScoreGameDto

        The payload containing the winning team index and player stats.

      Returns Promise<{ message: string }>

      A promise resolving to a success message.

    • Undoes the results of a previously scored game, reverting ELO changes and statistics.

      Parameters

      • gameId: number

        The ID of the game to undo.

      Returns Promise<{ message: string }>

      A promise resolving to a success message.