diff --git a/src/model/ToolsData.ts b/src/model/ToolsData.ts index 4f8ed0e..045f079 100644 --- a/src/model/ToolsData.ts +++ b/src/model/ToolsData.ts @@ -13,7 +13,6 @@ export class ToolsData { name: "", logoUrl: "", backdropUrl: "", - enabled: false, }; public timeoutDuration: number = 60; public timeoutCounter: ITimeoutInfo = { @@ -43,15 +42,13 @@ export class ToolsData { public nameOverrides: INameOverrides = { overrides: "[]", }; + public roundWinBox: IRoundWinBox = { + type: "disabled", + sponsors: [], + }; public constructor(init?: Partial) { Object.assign(this, init); - - if (this.tournamentInfo.logoUrl != "" || this.tournamentInfo.name != "") { - this.tournamentInfo.enabled = true; - } else { - this.tournamentInfo.enabled = false; - } this.timeoutCounter.left = this.timeoutCounter.max; this.timeoutCounter.right = this.timeoutCounter.max; } @@ -73,7 +70,6 @@ export type ITournamentInfo = { name: string; logoUrl: string; backdropUrl: string; - enabled: boolean; }; export type ITimeoutInfo = { @@ -107,6 +103,18 @@ export type INameOverrides = { overrides: string; // JSON representation of Map for easier transfer }; +export type IRoundWinBox = { + type: "disabled" | "tournamentInfo" | "sponsors"; + sponsors: IRoundWinBoxSponsors[]; +}; + +export type IRoundWinBoxSponsors = { + wonTeam: "all" | "left" | "right"; + roundCeremonie: ("all" | "normal" | "ace" | "clutch" | "teamAce" | "flawless" | "thrifty")[]; + iconUrl: string; + backdropUrl: string; +}; + export type IOverridesPlayercamsData = { nameOverrides: string; // JSON representation of Map for easier transfer enabledPlayers: string[]; diff --git a/src/replay/ReplayConnectorService.ts b/src/replay/ReplayConnectorService.ts index 409d84e..16eaee9 100644 --- a/src/replay/ReplayConnectorService.ts +++ b/src/replay/ReplayConnectorService.ts @@ -110,7 +110,6 @@ export class ReplayConnectorService { name: "Tournament Name", logoUrl: "", backdropUrl: "", - enabled: true, }, timeoutDuration: 60, sponsorInfo: { @@ -134,6 +133,10 @@ export class ReplayConnectorService { nameOverrides: { overrides: "[]", }, + roundWinBox: { + type: "tournamentInfo", + sponsors: [], + }, timeoutCounter: { max: 2, left: 2,