登录响应数据
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* 元数据
|
||||
*/
|
||||
import { BaseData } from "./BaseData";
|
||||
|
||||
export class MetaData extends BaseData {
|
||||
// 游戏名字
|
||||
private _gameName = "";
|
||||
|
||||
/** 设置游戏名字 */
|
||||
public set gameName(value: string) {
|
||||
this._gameName = value;
|
||||
}
|
||||
|
||||
/** 获取游戏名字 */
|
||||
public get gameName(): string {
|
||||
return this._gameName;
|
||||
}
|
||||
|
||||
public reset(): void {
|
||||
this._gameName = "";
|
||||
}
|
||||
|
||||
public clear(): void {
|
||||
this._gameName = "";
|
||||
}
|
||||
|
||||
public destroy(): void {
|
||||
super.destroy();
|
||||
this._gameName = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user