import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('config')
export class config  {
    public static Platform = {
        platform: "douyin",
        // platform: "wx"
    }
    public static API = {
        login : "/snake/user/login",
        info : "/snake/user/info",
        get_dyopen_id : "/snake/user/get_dyopen_id",
        sync_integral : "/snake/user/sync_integral",
        user_ranking : "/snake/user/user_ranking",
        user_car_list : "/snake/user/user_car_list",
        user_set_region: "/snake/user/set_region",
    }


    public static STATIC_API = {
        levels : "/snakestatic/levels.json",
        regions : "/snakestatic/regions.json",
        car_list : "/snakestatic/car_list.json",
        rankings: (region_id)=>{
            return `/snakestatic/rankings/${region_id}.json`
        }
    }

    static SETTING_DATA:string = "SETTING_DATA"

    public static AD_TYPE = {
        UNKNOWN:""
    }


    public static status = {
        SUCCESS:10000
    }

    public static item_type = {
        box_blue:1,
        box_zise:2,
        box_yellow:3,
        box_green:4,
        box_red:5,
        wall:6,
        coin:7,
        scores:8,
        box_fenhong:9,
        box_huanglv:10,
        box_qing:11,
        box_zi:12,
        box_huang:13,
    }

    public static buff_type = {
        dun:1, //盾无敌时间
        xing:2, //获取积分翻倍
        xi:3 //吸收周边的积分
    }

    public static collider_dir = {
        top:1,
        left:2,
        right:3
    }

    public static PREFAB={
        game:"prefabs/game"
    }

    public static AUDIO={
        // loading_bgm:"bgm/loading_bgm",
        home_bgm:"audio/ad_bgm_home", //主页音效
        game_bgm:"audio/ad_bgm_game", //游戏音效
        btn:"audio/ad_btn",//按钮
        car_jia_su:"audio/ad_car_jia_su",//汽车加速
        car_qi_dong:"audio/ad_car_qi_dong", //汽车启动
        car_sha_che:"audio/ad_car_sha_che",//汽车刹车
        buff_xi:"audio/ad_ci_tie", //buff 吸
        buff_dun:"audio/ad_dun",//buff 盾
        buff_xing:"audio/ad_xing",//buff 星
        win:"audio/ad_win", //失败1
        qiyou:"audio/ad_qi_you",//汽油
        peng_zhuang:"audio/ad_peng_zhuang",//碰撞
        zi_xing_che_qi_bu:"audio/ad_zi_xing_che_qi_bu",
        zi_xing_che_sha_che:"audio/ad_zi_xing_che_sha_che",
    }

    public static UI = {
        ui_setting:"ui/setting",
        ui_announcement:"ui/announcement",
        ui_gameplay_view:"ui/gameplay_view",
        ui_select_area:"ui/select_area",
        ui_unLock_view:"ui/unLock_view",
        loading_view:"ui/loading_view",
        home:"ui/home",
        rank:"ui/rank",
    }

    public static SHOW_BUFF_STATUS = {
        DUN:0,
        XING:1,
        XI:2
    }

    public static UI_EVENT ={
        GET_NEW_CAR:"get_new_car"
    }

    public static ADS_CONFIG = {
        GAME_RELIFE_VIDEO:"asdasdas122321", //游戏看视频复活
        GAME_RELIFE_SHARE_TITLE:"分享游戏获得复活"//游戏分享复活
    }
}


