import { API, PlayerInfoOV } from "../consts/API";
import BaseData from "./BaseData";


//玩家数据
export default class PlayerData extends BaseData{

    data:PlayerInfoOV;

    async onInit() {
        console.log("PlayerData",await API.GetPlayerInfo())
        this.data = (await API.GetPlayerInfo());
    }

    //获取玩家信息
    getInfo():PlayerInfoOV{
        return this.data;
    }
}


