

/*
 * @Author: dgflash
 * @Date: 2021-11-12 10:02:31
 * @LastEditors: mojunshou 1637302775@qq.com
 * @LastEditTime: 2025-04-01 18:49:12
 */
import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";

/** 
 * 游戏账号数据 
 */
@ecs.register('AccountModel')
export class AccountModelComp extends ecs.Comp {
    /** 账号名 */
    AccountName: string = null!;
    /**玩家UID */
    Uid: number = -1;
    /**玩家头像*/
    HeadUrl: string = null!
    /**当前关卡--默认从0开始*/
    CurLevel: number = 0;
    /**游戏币*/
    GameCoin: number = 0;
    /**红包币*/
    CashCoin: number = 0;
    /**协议类型 1隐私 2用户*/
    ProtocolType: number = 1;

    reset() {
        this.AccountName = null!;
        this.Uid = -1;
        this.HeadUrl = null!;
        this.CurLevel = 0;
        this.GameCoin = 0;
        this.CashCoin = 0;
    }

}