feat(audio): BgmType 확장 및 파일명 매핑 추가
- battleAct4, battleAct5: Act별 전투 BGM - actBoss: Act 보스 전용 BGM - elite: 엘리트 몬스터 BGM - death: 사망 BGM - actCinematic: Act 전환 시네마틱 - ending: 엔딩 BGM
This commit is contained in:
@@ -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을 파일명으로 변환
|
||||
|
||||
Reference in New Issue
Block a user