协议修改:增加热度值和收藏时间

This commit is contained in:
chen wei bo
2025-10-08 13:39:14 +08:00
parent 7489206537
commit 8b4f2d7262
8 changed files with 2827 additions and 59 deletions
@@ -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;
}
}