commonui-lib-test
Version:
"#common ui lib test"
75 lines (74 loc) • 4.56 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @api {class} SoundType 聲音檔設定
* @apiName SoundType
* @apiGroup sound
* @apiDescription 聲音檔設定
*/
class SoundType {
constructor() {
this.ID = {};
this.musicPath = "DBLM/music/";
this.cardPath = "DBLM/sound/card/";
this.soundPath = 'DBLM/sound/';
this.ID["bgm_001"] = this.musicPath + "bgm_001.mp3"; //BGM_選房背景音樂
this.ID["bgm_002"] = this.musicPath + "bgm_002.mp3"; //BGM_遊戲背景音樂
this.ID["countdown"] = this.soundPath + "countdown.mp3"; //時鐘倒數音
this.ID["select"] = this.soundPath + "Common_Select_001.mp3"; //選牌音效
this.ID["f1"] = this.soundPath + "f1.mp3"; //尾一_W
this.ID["fw2"] = this.soundPath + "fw2.mp3"; //尾二_W
this.ID["Flow_OpenCard_001"] = this.soundPath + "Flow_OpenCard_001.mp3"; //牌翻開的聲音
this.ID["alarm"] = this.soundPath + "alarm.wav"; //警告音效
this.ID["ncall"] = this.cardPath + "ncall.mp3"; //地主-不叫_W
this.ID["call1"] = this.cardPath + "call1.mp3"; //地主-叫分-1分_W
this.ID["call2"] = this.cardPath + "call2.mp3"; //地主-叫分-2分_W
this.ID["call3"] = this.cardPath + "call3.mp3"; //地主-叫分-3分_W
this.ID["no"] = this.cardPath + "no.mp3"; //不出_W
this.ID["ctype12"] = this.cardPath + "ctype12.mp3"; //四帶二對_W
this.ID["ctype11"] = this.cardPath + "ctype11.mp3"; //四帶二_W
this.ID["plane2"] = this.cardPath + "plane2.mp3"; //大牌-飛機2
this.ID["ctype6"] = this.cardPath + "ctype6.mp3"; //大牌-順子_W
this.ID["ctype5"] = this.cardPath + "ctype5.mp3"; //三帶一對_W
this.ID["ctype4"] = this.cardPath + "ctype4.mp3"; //三帶一_W
this.ID["ctype3"] = this.cardPath + "ctype3.mp3"; //三帶_W
this.ID["ctype2_1"] = this.cardPath + "ctype2_1.mp3"; //一對-33_W
this.ID["ctype2_2"] = this.cardPath + "ctype2_2.mp3"; //一對-44_W
this.ID["ctype2_3"] = this.cardPath + "ctype2_3.mp3"; //一對-55_W
this.ID["ctype2_4"] = this.cardPath + "ctype2_4.mp3"; //一對-66_W
this.ID["ctype2_5"] = this.cardPath + "ctype2_5.mp3"; //一對-77_W
this.ID["ctype2_6"] = this.cardPath + "ctype2_6.mp3"; //一對-88_W
this.ID["ctype2_7"] = this.cardPath + "ctype2_7.mp3"; //一對-99_W
this.ID["ctype2_8"] = this.cardPath + "ctype2_8.mp3"; //一對-1010_W
this.ID["ctype2_9"] = this.cardPath + "ctype2_9.mp3"; //一對-JJ_W
this.ID["ctype2_10"] = this.cardPath + "ctype2_10.mp3"; //一對-QQ_W
this.ID["ctype2_11"] = this.cardPath + "ctype2_11.mp3"; //一對-KK_W
this.ID["ctype2_12"] = this.cardPath + "ctype2_12.mp3"; //一對-AA_W
this.ID["ctype2_13"] = this.cardPath + "ctype2_13.mp3"; //一對-22_W
this.ID["rock2"] = this.cardPath + "rock2.mp3"; //特殊-火箭2
this.ID["bomb2"] = this.cardPath + "bomb2.mp3"; //特殊-炸彈2
this.ID["ctype7"] = this.cardPath + "ctype7.mp3"; //連對_W
this.ID["ctype1_1"] = this.cardPath + "ctype1_1.mp3"; //單張-3_W
this.ID["ctype1_2"] = this.cardPath + "ctype1_2.mp3"; //單張-4_W
this.ID["ctype1_3"] = this.cardPath + "ctype1_3.mp3"; //單張-5_W
this.ID["ctype1_4"] = this.cardPath + "ctype1_4.mp3"; //單張-6_W
this.ID["ctype1_5"] = this.cardPath + "ctype1_5.mp3"; //單張-7_W
this.ID["ctype1_6"] = this.cardPath + "ctype1_6.mp3"; //單張-8_W
this.ID["ctype1_7"] = this.cardPath + "ctype1_7.mp3"; //單張-9_W
this.ID["ctype1_8"] = this.cardPath + "ctype1_8.mp3"; //單張-10_W
this.ID["ctype1_9"] = this.cardPath + "ctype1_9.mp3"; //單張-J_W
this.ID["ctype1_10"] = this.cardPath + "ctype1_10.mp3"; //單張-Q_W
this.ID["ctype1_11"] = this.cardPath + "ctype1_11.mp3"; //單張-K_W
this.ID["ctype1_12"] = this.cardPath + "ctype1_12.mp3"; //單張-A_W
this.ID["ctype1_13"] = this.cardPath + "ctype1_13.mp3"; //單張-2_W
this.ID["ctype1_14"] = this.cardPath + "ctype1_14.mp3"; //單張-小王_W
this.ID["ctype1_15"] = this.cardPath + "ctype1_15.mp3"; //單張-大王_W
}
static get Ins() {
if (SoundType._instance == null) {
SoundType._instance = new SoundType();
}
return SoundType._instance;
}
}
exports.default = SoundType;