import { Enum } from "cc";

export class model_item_data{
    public id:number = 0
    public name:string = "123"
    public width:number = 1080
    public height:number = 1000
    public list:model_content_item_data[] = [];
}

export class model_content_item_data{
    public x:number = 0;
    public y:number = 0;
    public w:number = 0;
    public h:number = 0;
    public buff_type:number = -1;
    public item_type:number = -1;
}

export class settingData{
    public isOpenYinYue:boolean = true; //是否开启音乐
    public isOpenYinXiao:boolean = true; //是否开启音效
    public isOpenZhendong:boolean = true; //是否开启震动
}

export class level_data{
    public content:level_item_data[] = []
}

export class level_item_data{
    public content:string = ""
}

export class userInfo{
    public avatarUrl:string = ""
    public nickName:string = ""
    public gender:number = 0
    public city:string = ""
    public province:string = ""
    public country:string = ""
    public language:string = ""
}

export class userData{
    public id:number = 0
    public openid:string = ""
    public avatarUrl:string = ""
    public nickName:string = ""
    public unionid:string = ""
    public region_pid:number = 0
    public region_id:number = 0
    public license_plate:string = ""
    public ip:string = ""
    public platform:string = ""
    public create_at:string = ""
    public license_code:string = ""
    public token:string = ""
    public province_name:string = ""
    public city_name:string = ""
}

export class rankData{
    public score:number = 0 //最大积分
    public number:number = 0 //排名 0 没有分数和排名
    public ranking_desc:string = "" //	排名描述
    public avatarUrl:string = "" //	头像
    public nickName:string = "" //昵称
    public license_code:string = "" //车牌号
    public car_id:number = 1 // 当前汽车图片id
    public car_url:string = "" //	当前汽车图片
    public province_name:string = ""//省名字
    public city_name:string = ""//市名字
}

export class user_car_list{
    public car_list:number[] = [] //汽车列表
    public default_car_id:number = 0 //	默认车辆
}

export class user_results{
    public unlock_car_list:number[] = [] //所有汽车列表
    public default_car_id:number = 0 //	默认车辆
    public obtain_list:number[] = [] //
    public ratio:string = ""
}

export class car_item_data{
    public id:number = 0;
    public name:string = "";
    public unlock_points:number = 0;
    public cover:string = "";
    public home_cover:string = "";
    public ranking_cover:string = "";
}

export class edit_game_config_data{
    public box_list:box_random_data[] = []
    public scores:box_random_data = null
    public car_init_num:number = 3;
    public buff_xing:number = 10;
    public buff_xi:number = 10;
    public buff_dun:number = 10;
    public buff_xi_range:number = 10;

    //
    public car_origin_speed:number = 700;
    public car_add_speed_time:number = 1;
    public car_add_speed_num:number = 0;
    public car_add_speed_max:number = 0;
    //
    public buff_xi_add_speed:number = 0;
    public buff_dun_add_speed:number = 0;
    public buff_xing_add_speed:number = 0;
}

export class box_random_data{
    public min:number = 0;
    public max:number = 0;
    public type:number = 0;
}

export class area_item_data{
    public id:number = -1;
    public name:string = '';
    public pid:number = -1;
    public list:area_item_data[] = []
}

export enum DirType{
    LEFT,
    RIGHT,
    NONE,
}




