协议修改:增加热度值和收藏时间
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* 技师的其他数据
|
||||
*/
|
||||
import { BaseData } from "./BaseData";
|
||||
import proto from 'db://assets/Scripts/proto/proto.pb.js';
|
||||
|
||||
export class GirlOtherData extends BaseData {
|
||||
// 热度值
|
||||
private heatValue: number;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.heatValue = 0;
|
||||
}
|
||||
|
||||
public reset(): void {
|
||||
this.heatValue = 0;
|
||||
}
|
||||
|
||||
public clear(): void {
|
||||
this.heatValue = 0;
|
||||
}
|
||||
|
||||
public destroy(): void {
|
||||
super.destroy();
|
||||
this.heatValue = null;
|
||||
}
|
||||
|
||||
/** 获取 热度值 */
|
||||
public getHeatValue(): number {
|
||||
return this.heatValue;
|
||||
}
|
||||
|
||||
/** 保存 热度值 */
|
||||
public setHeatValue(value: number): void {
|
||||
this.heatValue = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user