Skip to content

Commit

Permalink
Merge pull request #1060 from wowsims/feature/sim-launched
Browse files Browse the repository at this point in the history
[UI] Make all current Sims Launched
  • Loading branch information
1337LutZ authored Sep 27, 2024
2 parents 1eb0e26 + 5e81c22 commit 776c448
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 93 deletions.
7 changes: 4 additions & 3 deletions ui/core/constants/other.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { readMessageOption } from "@protobuf-ts/runtime";
import { ProtoVersion } from '../proto/common.js';
import { readMessageOption } from '@protobuf-ts/runtime';

import { ProtoVersion } from '../proto/common';

export enum Phase {
Phase1 = 1,
Expand All @@ -10,7 +11,7 @@ export enum Phase {

export const CURRENT_PHASE = Phase.Phase2;

export const CURRENT_API_VERSION: number = readMessageOption(ProtoVersion, "proto.current_version_number")! as number;
export const CURRENT_API_VERSION: number = readMessageOption(ProtoVersion, 'proto.current_version_number')! as number;

// Github pages serves our site under the /cata directory (because the repo name is cata)
export const REPO_NAME = 'cata';
Expand Down
106 changes: 53 additions & 53 deletions ui/core/launched_sims.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,33 @@ export type SimStatus = {
};

export const raidSimStatus: SimStatus = {
phase: Phase.Phase1,
phase: Phase.Phase2,
status: LaunchStatus.Unlaunched,
};

// This list controls which links are shown in the top-left dropdown menu.
export const simLaunchStatuses: Record<Spec, SimStatus> = {
[Spec.SpecUnknown]: {
phase: Phase.Phase1,
phase: Phase.Phase2,
status: LaunchStatus.Unlaunched,
},
// Death Knight
[Spec.SpecBloodDeathKnight]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecFrostDeathKnight]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecUnholyDeathKnight]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
// Druid
[Spec.SpecBalanceDruid]: {
phase: Phase.Phase2,
status: LaunchStatus.Beta,
status: LaunchStatus.Launched,
},
[Spec.SpecFeralDruid]: {
phase: Phase.Phase2,
Expand All @@ -55,112 +55,112 @@ export const simLaunchStatuses: Record<Spec, SimStatus> = {
status: LaunchStatus.Launched,
},
[Spec.SpecRestorationDruid]: {
phase: Phase.Phase1,
phase: Phase.Phase2,
status: LaunchStatus.Unlaunched,
},
// Hunter
[Spec.SpecBeastMasteryHunter]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecMarksmanshipHunter]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecSurvivalHunter]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
// Mage
[Spec.SpecArcaneMage]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecFireMage]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecFrostMage]: {
phase: Phase.Phase1,
phase: Phase.Phase2,
status: LaunchStatus.Unlaunched,
},
// Paladin
[Spec.SpecHolyPaladin]: {
phase: Phase.Phase1,
phase: Phase.Phase2,
status: LaunchStatus.Unlaunched,
},
[Spec.SpecProtectionPaladin]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Beta,
},
[Spec.SpecRetributionPaladin]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
// Priest
[Spec.SpecDisciplinePriest]: {
phase: Phase.Phase1,
phase: Phase.Phase2,
status: LaunchStatus.Unlaunched,
},
[Spec.SpecHolyPriest]: {
phase: Phase.Phase1,
phase: Phase.Phase2,
status: LaunchStatus.Unlaunched,
},
[Spec.SpecShadowPriest]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
// Rogue
[Spec.SpecAssassinationRogue]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecCombatRogue]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecSubtletyRogue]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
// Shaman
[Spec.SpecElementalShaman]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecEnhancementShaman]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecRestorationShaman]: {
phase: Phase.Phase1,
phase: Phase.Phase2,
status: LaunchStatus.Unlaunched,
},
// Warlock
[Spec.SpecAfflictionWarlock]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecDemonologyWarlock]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecDestructionWarlock]: {
phase: Phase.Phase1,
status: LaunchStatus.Beta,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
// Warrior
[Spec.SpecArmsWarrior]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecFuryWarrior]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
[Spec.SpecProtectionWarrior]: {
phase: Phase.Phase1,
status: LaunchStatus.Alpha,
phase: Phase.Phase2,
status: LaunchStatus.Launched,
},
};

Expand Down
Loading

0 comments on commit 776c448

Please sign in to comment.