brackets-model
Version:
The types needed by brackets-manager.js and brackets-viewer.js
31 lines (30 loc) • 1.35 kB
JavaScript
;
/*---------------------------------------------------------------------------|
* Contains the rest of the types which doesn't belong to the other files.
*--------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Status = void 0;
/**
* The possible status for a match.
*/
var Status;
(function (Status) {
/** The two matches leading to this one are not completed yet. */
Status[Status["Locked"] = 0] = "Locked";
/** One participant is ready and waiting for the other one. */
Status[Status["Waiting"] = 1] = "Waiting";
/** Both participants are ready to start. */
Status[Status["Ready"] = 2] = "Ready";
/** The match is running. */
Status[Status["Running"] = 3] = "Running";
/** The match is completed. */
Status[Status["Completed"] = 4] = "Completed";
/** At least one participant completed his following match. */
Status[Status["Archived"] = 5] = "Archived";
/**
* The match game was cancelled with `update.cancelMatchGame()`.
*
* Can also be used for games that were not needed (e.g. Bo3 with a score of 2-0), but this is not handled by the library.
*/
Status[Status["GameCancelled"] = 6] = "GameCancelled";
})(Status = exports.Status || (exports.Status = {}));