window.AppConst = window.AppConst || {};

// 本地配置
AppConst.GameName = 'popStar';
AppConst.UIPrefabDir = 'UIPrefabs';
AppConst.SoundDir = 'Sounds';
AppConst.SpriteFrameDir = 'SpriteFrames';
AppConst.JsonDir = 'Jsons';
AppConst.LocalStorage = {
    ConfigVo: AppConst.GameName + 'ConfigVo',
};
// URL
const wsUrl = {
    TEST: "",
    RELEASE: "",
};

const httpUrl = {
    TEST: 'https://xxx.com',
    RELEASE: "",
};

const shareImageUrl = {
    TEST: httpUrl.TEST + '/assests/popStar/shareImage.png',
    RELEASE: '',
};

const servers = {
    TEST: 'TEST',
    RELEASE: 'RELEASE',
};

AppConst.HttpServer = ""
AppConst.GETSHENGURL = "";
// 渠道枚举
AppConst.channel = {
    QQMiniGame: "QQMiniGame",
    WXMiniGame: "WXMiniGame",
    VIVOMiniGame: "VIVOMiniGame",
    OPPOMiniGame: "OPPOMiniGame",
    BDMiniGame: "BDMiniGame",
    TTMiniGame: "TTMiniGame",
    ANDROID: "ANDROID",
    IOS: "IOS",
    H5: "H5",
};
// sdk广告参数枚举
const sdkConfig = {
    QQMiniGame: { videoId: "", bannerId: "", insertId: "" },
    WXMiniGame: { videoId: "", bannerId: "" },
    VIVOMiniGame: { videoId: "", bannerId: "", insertId: "" },
    OPPOMiniGame: { videoId: "", bannerId: "", insertId: "" },
    BDMiniGame: { videoId: "", bannerId: "", appSid: "" },
    TTMiniGame: { videoId: "", bannerId: "", recorderId: "" },
    ANDROID: { videoId: "", bannerId: "" },
    IOS: { videoId: "", bannerId: "" },
    H5: { videoId: "H5 videoId", bannerId: "H5 bannerId" },

};

// 广告展示概率
AppConst.probabilityConfig = {
    // 弹出红包概率
    redBag: {
        probability: 30
    },
    // 信息流
    nativeAD: {
        gameFailUI:{
            delayTime:0.8,
            probability: 50,
        },
        gameSucessUI:{
            delayTime:0.8,
            probability: 50,
        },

        mainUI:{
            delayTime:0.8,
            probability: 50,
        },
        redBagUI:{
            delayTime:0.8,
            probability: 0,
        },
        helpUI:{
            delayTime:0.8,
            probability: 50
        }
    },
    videoAD: {
        redBagUI: {
            probability: 50
        }
    }
}

// 可修改项
AppConst.SERVER = servers.TEST;// 切换环境
AppConst.CHANNEL = AppConst.channel.H5;// 切换渠道
AppConst.VERSION = '1.0.0';// 版本
AppConst.SHOWADUI = false;// 是否展示广告UI 是否使用广告SDK
AppConst.DEBUG = true;

// 自动获取无需修改
AppConst.SDKCONFIG = sdkConfig[AppConst.CHANNEL];//sdk广告参数
AppConst.WSURL = wsUrl[AppConst.SERVER];//长连接URL
AppConst.HTTPURL = httpUrl[AppConst.SERVER];//短连接URL
AppConst.SHAREIMAGEURL = shareImageUrl[AppConst.SERVER];// 分享图片URL




