From 929b8a7f96fc8f3e37baa20e08f48de2123bbc39 Mon Sep 17 00:00:00 2001 From: JiWoong Sul Date: Thu, 8 Jan 2026 18:18:08 +0900 Subject: [PATCH] =?UTF-8?q?feat(audio):=20BgmType=20=ED=99=95=EC=9E=A5=20?= =?UTF-8?q?=EB=B0=8F=20=ED=8C=8C=EC=9D=BC=EB=AA=85=20=EB=A7=A4=ED=95=91=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - battleAct4, battleAct5: Act별 전투 BGM - actBoss: Act 보스 전용 BGM - elite: 엘리트 몬스터 BGM - death: 사망 BGM - actCinematic: Act 전환 시네마틱 - ending: 엔딩 BGM --- lib/src/core/audio/audio_service.dart | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/lib/src/core/audio/audio_service.dart b/lib/src/core/audio/audio_service.dart index a21b8e2..2acdb54 100644 --- a/lib/src/core/audio/audio_service.dart +++ b/lib/src/core/audio/audio_service.dart @@ -443,8 +443,15 @@ enum BgmType { title, town, battle, + battleAct4, // Act IV 전용 전투 BGM + battleAct5, // Act V 전용 전투 BGM boss, + actBoss, // Act 보스 전용 BGM + elite, // 엘리트 몬스터 전투 BGM victory, + death, // 사망 BGM + actCinematic, // Act 전환 시네마틱 BGM + ending, // 엔딩 BGM } /// SFX 타입 열거형 @@ -463,7 +470,20 @@ enum SfxType { /// BgmType을 파일명으로 변환 extension BgmTypeExtension on BgmType { - String get fileName => name; + String get fileName => switch (this) { + BgmType.title => 'title', + BgmType.town => 'town', + BgmType.battle => 'battle', + BgmType.battleAct4 => 'battle_act4', + BgmType.battleAct5 => 'battle_act5', + BgmType.boss => 'boss', + BgmType.actBoss => 'act_boss', + BgmType.elite => 'elite', + BgmType.victory => 'victory', + BgmType.death => 'death', + BgmType.actCinematic => 'act_cinemetic', // 파일명 오타 유지 + BgmType.ending => 'ending', + }; } /// SfxType을 파일명으로 변환