From 0911e8d2a333f9f28704bbcdec321901396cd6df Mon Sep 17 00:00:00 2001 From: zcl <25492220@QQ.COM> Date: Thu, 4 Sep 2025 15:14:55 +0800 Subject: [PATCH] 1 --- assets/Scripts/schema/schema.ts | 94 ++++++++++++-------- assets/bundles/DataTable/tbgirls.bin | Bin 1310 -> 1339 bytes assets/bundles/DataTable/tbglobalconfig.bin | Bin 2306 -> 2323 bytes xchat_cfg | 2 +- 4 files changed, 59 insertions(+), 37 deletions(-) diff --git a/assets/Scripts/schema/schema.ts b/assets/Scripts/schema/schema.ts index 270a0630..162c7e05 100644 --- a/assets/Scripts/schema/schema.ts +++ b/assets/Scripts/schema/schema.ts @@ -75,7 +75,7 @@ export enum VideoEmotion { -export class AiCharacter { +export class AiCharacters { constructor(_buf_: ByteBuf) { this.id = _buf_.readInt() @@ -107,7 +107,7 @@ export class AiCharacter { -export class Girl { +export class Girls { constructor(_buf_: ByteBuf) { this.id = _buf_.readInt() @@ -116,6 +116,8 @@ export class Girl { this.category = _buf_.readInt() this.tagKey = _buf_.readString() this.priceType = _buf_.readInt() + this.price = _buf_.readInt() + this.vipUnlock = _buf_.readInt() this.avatarPath = _buf_.readString() this.listAvatarPath = _buf_.readString() } @@ -144,6 +146,14 @@ export class Girl { * 付费类型 */ readonly priceType: PriceType + /** + * 购买价格 + */ + readonly price: number + /** + * VIP能否解锁 + */ + readonly vipUnlock: number /** * 头像路径 */ @@ -162,6 +172,8 @@ export class Girl { + + } } @@ -169,7 +181,7 @@ export class Girl { -export class GirlDetail { +export class GirlsDetail { constructor(_buf_: ByteBuf) { this.id = _buf_.readInt() @@ -220,6 +232,7 @@ export class GlobalConfig { this.GameName = _buf_.readString() this.EmotionRating = _buf_.readString() this.girlBasePrompt = _buf_.readString() + this.dailyRecommendGirl = _buf_.readInt() } /** @@ -259,6 +272,10 @@ export class GlobalConfig { * ai机器人基础规则 */ readonly girlBasePrompt: string + /** + * 每日推荐技师ID,参见:girls.id + */ + readonly dailyRecommendGirl: number resolve(tables:Tables) { @@ -271,6 +288,7 @@ export class GlobalConfig { + } } @@ -424,7 +442,7 @@ export class PurchaseConfig { -export class Theme { +export class Themes { constructor(_buf_: ByteBuf) { this.id = _buf_.readInt() @@ -578,23 +596,23 @@ export class TbLanguage { export class TbGirls { - private _dataMap: Map - private _dataList: Girl[] + private _dataMap: Map + private _dataList: Girls[] constructor(_buf_: ByteBuf) { - this._dataMap = new Map() + this._dataMap = new Map() this._dataList = [] for(let n = _buf_.readInt(); n > 0; n--) { - let _v: Girl - _v = new Girl(_buf_) + let _v: Girls + _v = new Girls(_buf_) this._dataList.push(_v) this._dataMap.set(_v.id, _v) } } - getDataMap(): Map { return this._dataMap; } - getDataList(): Girl[] { return this._dataList; } + getDataMap(): Map { return this._dataMap; } + getDataList(): Girls[] { return this._dataList; } - get(key: number): Girl | undefined { + get(key: number): Girls | undefined { return this._dataMap.get(key); } @@ -611,23 +629,23 @@ export class TbGirls { export class TbGirlsDetail { - private _dataMap: Map - private _dataList: GirlDetail[] + private _dataMap: Map + private _dataList: GirlsDetail[] constructor(_buf_: ByteBuf) { - this._dataMap = new Map() + this._dataMap = new Map() this._dataList = [] for(let n = _buf_.readInt(); n > 0; n--) { - let _v: GirlDetail - _v = new GirlDetail(_buf_) + let _v: GirlsDetail + _v = new GirlsDetail(_buf_) this._dataList.push(_v) this._dataMap.set(_v.id, _v) } } - getDataMap(): Map { return this._dataMap; } - getDataList(): GirlDetail[] { return this._dataList; } + getDataMap(): Map { return this._dataMap; } + getDataList(): GirlsDetail[] { return this._dataList; } - get(key: number): GirlDetail | undefined { + get(key: number): GirlsDetail | undefined { return this._dataMap.get(key); } @@ -644,23 +662,23 @@ export class TbGirlsDetail { export class TbThemes { - private _dataMap: Map - private _dataList: Theme[] + private _dataMap: Map + private _dataList: Themes[] constructor(_buf_: ByteBuf) { - this._dataMap = new Map() + this._dataMap = new Map() this._dataList = [] for(let n = _buf_.readInt(); n > 0; n--) { - let _v: Theme - _v = new Theme(_buf_) + let _v: Themes + _v = new Themes(_buf_) this._dataList.push(_v) this._dataMap.set(_v.id, _v) } } - getDataMap(): Map { return this._dataMap; } - getDataList(): Theme[] { return this._dataList; } + getDataMap(): Map { return this._dataMap; } + getDataList(): Themes[] { return this._dataList; } - get(key: number): Theme | undefined { + get(key: number): Themes | undefined { return this._dataMap.get(key); } @@ -677,23 +695,23 @@ export class TbThemes { export class TbAiCharacters { - private _dataMap: Map - private _dataList: AiCharacter[] + private _dataMap: Map + private _dataList: AiCharacters[] constructor(_buf_: ByteBuf) { - this._dataMap = new Map() + this._dataMap = new Map() this._dataList = [] for(let n = _buf_.readInt(); n > 0; n--) { - let _v: AiCharacter - _v = new AiCharacter(_buf_) + let _v: AiCharacters + _v = new AiCharacters(_buf_) this._dataList.push(_v) this._dataMap.set(_v.id, _v) } } - getDataMap(): Map { return this._dataMap; } - getDataList(): AiCharacter[] { return this._dataList; } + getDataMap(): Map { return this._dataMap; } + getDataList(): AiCharacters[] { return this._dataList; } - get(key: number): AiCharacter | undefined { + get(key: number): AiCharacters | undefined { return this._dataMap.get(key); } @@ -756,6 +774,10 @@ export class TbGlobalConfig { * ai机器人基础规则 */ get girlBasePrompt(): string { return this._data.girlBasePrompt; } + /** + * 每日推荐技师ID,参见:girls.id + */ + get dailyRecommendGirl(): number { return this._data.dailyRecommendGirl; } resolve(tables:Tables) { this._data.resolve(tables) diff --git a/assets/bundles/DataTable/tbgirls.bin b/assets/bundles/DataTable/tbgirls.bin index 46141f9d071a7001de8e632b20056137afe86595..75fd1f92fdd93b1079973165ae5c6f7a70409e00 100644 GIT binary patch delta 115 zcmbQowVP{#Ix_=<>O?>JiSFS{&Ce&!tzc<>&Y(KkhEaa9DPuSz!{lzp3Xqb?T1@hj zm6^g>+OvV2g+R_Mrf_B;XYxm;a