/**
產品商業類別設定檔
@explain 讀不同表就代表不同商業類別.要多開GIT並設定新測試環境
@explain 遊戲一定都一樣不能改動介面
 */
export default class BusinessTypeSetting {
	/** 產品商業類別字串(組合判斷用) */
	public static readonly TYPE_BUSINESS: string = "LP1";

	// /** 必要JSON載入結束 */
	// public static GetLoadInitEnd(): boolean {
	// 	return this.SetLoadInitEnd;
	// }

	// public static SetLoadInitEnd: boolean = false;

	// /**
	//  * 執行環境ProductEnum.ServerType
	//  * @description 請統一從Cocos掛載Loading的面板去設定ServerType
	//  */
	// public static UseServerType: BusinessEnum.ServerType = BusinessEnum.ServerType[import.meta.env.VITE_Deploy] as unknown as BusinessEnum.ServerType;

	/** 連線IP(網頁版會接網址參數所以要多開變數直接指定) */
	public static UseHost: string;

	/** 連接阜(網頁版會接網址參數所以要多開變數直接指定) */
	public static UsePort: number;

	// /** 資源伺服器網址 */
	// public static UsePatch: string = BusinessTypeSetting.GetPatchUrl(BusinessTypeSetting.UseServerType);

	/** 靜態伺服器網址 */
	public static get UseDownloadUrl(): string { return BusinessTypeSetting.GetDownloadUrl() };

	// /** Line Liff */
	// public static UseLiffID: string = BusinessTypeSetting.GetLiffID(BusinessTypeSetting.UseServerType);

	// /** Line Liff */
	// public static UseLineID: string = BusinessTypeSetting.GetLineID(BusinessTypeSetting.UseServerType);

	public static GetDownloadUrl(): string {
		const host = BusinessTypeSetting.UseHost.replace("https://", "");
		return `https://static-${host}`;
	}
}

export enum FileType {
	PNG = ".png",
	JPG = ".jpg",
	MP3 = ".mp3",
	TXT = ".txt",
}

export enum FolderName {
	Logo = "Logo/",
	SlotImg = "SlotImg/",
	Avatar = "Avatar/",
	Report = "report/",
	PA = "pa/",
	LobbyAd = "lobby_ad/",
	CoverAd = "inter_ad/",
	Activity = "Activity/",
	Game = "game/",
	Dlygo = "dlygo/",
	Event = "event/",
}