Commit af0ae3d8 authored by Hugo Denizart's avatar Hugo Denizart
Browse files

Update type definitions with multiplayer scores sorting.

parent 2bab9e40
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -310,6 +310,10 @@ declare module "bancho.js" {
		 * Multiplayer lobby ID (used in multiplayer history links)
		 */
		id: number
		/**
		 * Multiplayer lobby ID (used in multiplayer history links)
		 */
		scores: Array<BanchoLobbyPlayerScore>
		/**
		 * Name of the lobby, as seein in-game
		 */
@@ -490,6 +494,11 @@ declare module "bancho.js" {
		 */
		getHistoryUrl(): string

		/**
		 * Sort scores by pass and score.
		 */
		sortScores(): void


		on(event: "allPlayersReady", listener: () => void): this
		/**