151 lines
3.3 KiB
TypeScript
151 lines
3.3 KiB
TypeScript
type Series = {
|
|
teams: [string, string];
|
|
score: [number, number];
|
|
games: { winner: string; duration: string }[];
|
|
};
|
|
|
|
type MatchResult =
|
|
| { kind: 'series'; series: Series }
|
|
| { kind: 'tournament'; champion: string; final: Series }
|
|
| { kind: 'collecting'; recordedGames: number }
|
|
| { kind: 'unavailable' };
|
|
|
|
export type PreviewMatch = {
|
|
id: string;
|
|
title: string;
|
|
scheduledAt: string;
|
|
teamCount: number;
|
|
playerIds: string[];
|
|
result: MatchResult;
|
|
};
|
|
|
|
export type PreviewPlayer = {
|
|
id: string;
|
|
name: string;
|
|
tag: string;
|
|
position: string;
|
|
wins: number;
|
|
losses: number;
|
|
};
|
|
|
|
type PreviewSeason = {
|
|
matches: PreviewMatch[];
|
|
players: PreviewPlayer[];
|
|
sideWins: [blue: number, red: number];
|
|
};
|
|
|
|
const final: Series = {
|
|
teams: ['별빛', '바람'],
|
|
score: [2, 1],
|
|
games: [
|
|
{ winner: '별빛', duration: '30:42' },
|
|
{ winner: '바람', duration: '28:17' },
|
|
{ winner: '별빛', duration: '34:11' },
|
|
],
|
|
};
|
|
|
|
export const previewSeasons: Record<'2026' | '2025', PreviewSeason> = {
|
|
'2026': {
|
|
sideWins: [24, 21],
|
|
matches: [
|
|
{
|
|
id: 'autumn-league',
|
|
title: '가을 내전 리그',
|
|
scheduledAt: '2026-11-08T12:00:00+09:00',
|
|
teamCount: 8,
|
|
playerIds: ['star', 'wind', 'forest'],
|
|
result: { kind: 'collecting', recordedGames: 16 },
|
|
},
|
|
{
|
|
id: 'loly-cup',
|
|
title: '롤림푸스 컵',
|
|
scheduledAt: '2026-11-07T21:00:00+09:00',
|
|
teamCount: 4,
|
|
playerIds: ['star', 'wind', 'forest', 'dawn'],
|
|
result: { kind: 'tournament', champion: '별빛', final },
|
|
},
|
|
{
|
|
id: 'saturday',
|
|
title: '토요일 정기 내전',
|
|
scheduledAt: '2026-10-31T21:00:00+09:00',
|
|
teamCount: 2,
|
|
playerIds: ['star', 'wind', 'dawn'],
|
|
result: { kind: 'series', series: final },
|
|
},
|
|
{
|
|
id: 'friday',
|
|
title: '금요일 심야 내전',
|
|
scheduledAt: '2026-10-30T22:00:00+09:00',
|
|
teamCount: 2,
|
|
playerIds: ['forest', 'dawn'],
|
|
result: { kind: 'unavailable' },
|
|
},
|
|
],
|
|
players: [
|
|
{
|
|
id: 'star',
|
|
name: '별빛',
|
|
tag: 'LTS',
|
|
position: '미드',
|
|
wins: 12,
|
|
losses: 5,
|
|
},
|
|
{
|
|
id: 'wind',
|
|
name: '바람',
|
|
tag: 'LTS',
|
|
position: '정글',
|
|
wins: 10,
|
|
losses: 6,
|
|
},
|
|
{
|
|
id: 'forest',
|
|
name: '숲길',
|
|
tag: 'KR1',
|
|
position: '서포터',
|
|
wins: 8,
|
|
losses: 6,
|
|
},
|
|
{
|
|
id: 'dawn',
|
|
name: '새벽',
|
|
tag: 'KR1',
|
|
position: '원딜',
|
|
wins: 7,
|
|
losses: 8,
|
|
},
|
|
],
|
|
},
|
|
'2025': {
|
|
sideWins: [2, 1],
|
|
matches: [
|
|
{
|
|
id: 'winter',
|
|
title: '겨울 시즌 마감전',
|
|
scheduledAt: '2025-12-20T21:00:00+09:00',
|
|
teamCount: 2,
|
|
playerIds: ['star', 'wind'],
|
|
result: { kind: 'series', series: final },
|
|
},
|
|
],
|
|
players: [
|
|
{
|
|
id: 'star',
|
|
name: '별빛',
|
|
tag: 'LTS',
|
|
position: '미드',
|
|
wins: 2,
|
|
losses: 1,
|
|
},
|
|
{
|
|
id: 'wind',
|
|
name: '바람',
|
|
tag: 'LTS',
|
|
position: '정글',
|
|
wins: 1,
|
|
losses: 2,
|
|
},
|
|
],
|
|
},
|
|
};
|