@zomlit/tsleague
Version:
RL wrapper in TypeScript
40 lines (39 loc) • 1.84 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RocketLeagueRank = void 0;
class RocketLeagueRank {
name;
static SUPERSONIC_LEGEND = new RocketLeagueRank('Supersonic Legend');
static GRAND_CHAMPION_III = new RocketLeagueRank('Grand Champion III');
static GRAND_CHAMPION_II = new RocketLeagueRank('Grand Champion II');
static GRAND_CHAMPION_I = new RocketLeagueRank('Grand Champion I');
static CHAMPION_III = new RocketLeagueRank('Champion III');
static CHAMPION_II = new RocketLeagueRank('Champion II');
static CHAMPION_I = new RocketLeagueRank('Champion I');
static DIAMOND_III = new RocketLeagueRank('Diamond III');
static DIAMOND_II = new RocketLeagueRank('Diamond II');
static DIAMOND_I = new RocketLeagueRank('Diamond I');
static PLATINUM_III = new RocketLeagueRank('Platinum III');
static PLATINUM_II = new RocketLeagueRank('Platinum II');
static PLATINUM_I = new RocketLeagueRank('Platinum I');
static GOLD_III = new RocketLeagueRank('Gold III');
static GOLD_II = new RocketLeagueRank('Gold II');
static GOLD_I = new RocketLeagueRank('Gold I');
static SILVER_III = new RocketLeagueRank('Silver III');
static SILVER_II = new RocketLeagueRank('Silver II');
static SILVER_I = new RocketLeagueRank('Silver I');
static BRONZE_III = new RocketLeagueRank('Bronze III');
static BRONZE_II = new RocketLeagueRank('Bronze II');
static BRONZE_I = new RocketLeagueRank('Bronze I');
static UNRANKED = new RocketLeagueRank('Unranked');
constructor(name) {
this.name = name;
}
toString() {
return this.name;
}
static fromString(rankName) {
return Object.values(RocketLeagueRank).find(rank => rank.name === rankName);
}
}
exports.RocketLeagueRank = RocketLeagueRank;