// 발로란트 match-details 형태의 합성 데이터 (pd..a.pvp.net/match-details/v1/matches/{id} 응답 구조) export const SELF = 'self-puuid-0001'; export const ASCENT = '/Game/Maps/Ascent/Ascent'; const JETT = 'add6443a-41bd-e414-f6ad-e58d267f4e95'; const SAGE = '569fdd95-4d10-43ab-ca70-79becc718b46'; const REYNA = 'a3bfb853-43b2-7238-a4f1-ad90e9e46bcc'; const VANDAL = '9c82e19d-4575-0200-1a81-3eacf00cf872'; export function makeValDetails(gameStart: number) { const players = [ { subject: SELF, gameName: '하늘', tagLine: 'KR1', teamId: 'Blue', characterId: JETT, competitiveTier: 15, stats: { score: 4200, roundsPlayed: 3, kills: 3, deaths: 1, assists: 1 } }, { subject: 'ally-2', gameName: '민수', tagLine: 'KR1', teamId: 'Blue', characterId: SAGE, competitiveTier: 14, stats: { score: 1800, roundsPlayed: 3, kills: 1, deaths: 2, assists: 3 } }, { subject: 'enemy-1', gameName: '상대1', tagLine: '0000', teamId: 'Red', characterId: REYNA, competitiveTier: 15, stats: { score: 3000, roundsPlayed: 3, kills: 2, deaths: 3, assists: 0 } }, ]; const kill = (gameTime: number, roundTime: number, killer: string, victim: string) => ({ gameTime, roundTime, killer, victim, victimLocation: { x: 6500, y: -7000 }, assistants: [], playerLocations: [], finishingDamage: { damageType: 'Weapon', damageItem: VANDAL.toUpperCase(), isSecondaryFireMode: false }, }); const roundResults = [ { roundNum: 0, roundResult: 'Eliminated', winningTeam: 'Blue', playerStats: [ { subject: SELF, kills: [kill(60000, 25000, SELF, 'enemy-1')], economy: { spent: 800, remaining: 0, weapon: '', loadoutValue: 800 } }, { subject: 'enemy-1', kills: [kill(70000, 35000, 'enemy-1', 'ally-2')] }, ], }, // 킬 없는 라운드 (시간 초과) → 보간 { roundNum: 1, roundResult: 'Round timer expired', winningTeam: 'Red', playerStats: [] }, { roundNum: 2, roundResult: 'Bomb defused', winningTeam: 'Blue', plantRoundTime: 40000, defuseRoundTime: 80000, bombPlanter: 'enemy-1', bombDefuser: SELF, plantSite: 'B', playerStats: [{ subject: SELF, kills: [kill(330000, 20000, SELF, 'enemy-1'), kill(331000, 21000, SELF, 'enemy-1')] }], }, ]; return { matchInfo: { matchId: 'm-0001', mapId: ASCENT, gameStartMillis: gameStart, gameLengthMillis: 420000, queueID: 'competitive', gameMode: '/Game/GameModes/Bomb/BombGameMode.BombGameMode_C', isCompleted: true }, players, teams: [ { teamId: 'Blue', won: true, roundsWon: 2 }, { teamId: 'Red', won: false, roundsWon: 1 }, ], roundResults, }; }