import DataMgr from "../mgr/DataMgr";
import StorageMgr from "../mgr/StorageMgr";
import Util from "../util/Util";
import { PROPTYPE } from "./Enum";

const { ccclass, property } = cc._decorator;

@ccclass
export default class PlayerConst extends cc.Component {

    //Api回传数据-------------------------------------------------------------------
    public static videoNum: number = 0;
    /**是否巨量激活 */
    public static ifJuliangApiApiActivie: boolean = false;
    /**是否巨量次留激活 */
    public static ifJuliangApiSencondActivie: boolean = false;
    //平均ecpm----------------------------------------------------------------------
    public static average_ecpm: number = 0;
}

export enum DATA_STORAGE_KEY {
    /**现金数目 */
    cashNum = "cashNum",
    /**商城积分数量 */
    shopScoreNum = "shopScoreNum",
    /**关卡等级 */
    levelNum = "levelNum",
    /**能量数目 */
    energyNum = "energyNum",
    /**能量变更时间 */
    energyChangeTime = "energyChangeTime",
    /**剩余的能量回复时间 */
    leftEnergyRecoverTime = "leftEnergyRecoverTime",
    /**登陆ticket */
    login_ticket = "login_ticket",
    /**uin */
    uin = "uin",
    /**session_key */
    session_key = "session_key",
    /**是否授权 */
    isAuth = "isAuth",
    /**昵称 */
    nickname = "nickname",
    /**今天通关红包数目 */
    todayPassRedPacketNum = "todayPassRedPacketNum",
    /**今日观看视频数目 */
    watchVideoNum = "watchVideoNum",
    /**今日在线时长 */
    onlineTime = "onlineTime",
    /**今日通关数目 */
    passNum = "passTime",
    /**是否巨量激活 */
    ifJuliangApiApiActivie = "ifJuliangApiApiActivie",
    /**是否巨量次留激活 */
    ifJuliangApiSencondActivie = "ifJuliangApiSencondActivie",
    /**地址 */
    adress = "adress",
    /**平均Ecpm */
    average_ecpm = "average_ecpm"
}

