1
This commit is contained in:
@@ -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<number, Girl>
|
||||
private _dataList: Girl[]
|
||||
private _dataMap: Map<number, Girls>
|
||||
private _dataList: Girls[]
|
||||
constructor(_buf_: ByteBuf) {
|
||||
this._dataMap = new Map<number, Girl>()
|
||||
this._dataMap = new Map<number, Girls>()
|
||||
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<number, Girl> { return this._dataMap; }
|
||||
getDataList(): Girl[] { return this._dataList; }
|
||||
getDataMap(): Map<number, Girls> { 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<number, GirlDetail>
|
||||
private _dataList: GirlDetail[]
|
||||
private _dataMap: Map<number, GirlsDetail>
|
||||
private _dataList: GirlsDetail[]
|
||||
constructor(_buf_: ByteBuf) {
|
||||
this._dataMap = new Map<number, GirlDetail>()
|
||||
this._dataMap = new Map<number, GirlsDetail>()
|
||||
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<number, GirlDetail> { return this._dataMap; }
|
||||
getDataList(): GirlDetail[] { return this._dataList; }
|
||||
getDataMap(): Map<number, GirlsDetail> { 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<number, Theme>
|
||||
private _dataList: Theme[]
|
||||
private _dataMap: Map<number, Themes>
|
||||
private _dataList: Themes[]
|
||||
constructor(_buf_: ByteBuf) {
|
||||
this._dataMap = new Map<number, Theme>()
|
||||
this._dataMap = new Map<number, Themes>()
|
||||
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<number, Theme> { return this._dataMap; }
|
||||
getDataList(): Theme[] { return this._dataList; }
|
||||
getDataMap(): Map<number, Themes> { 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<number, AiCharacter>
|
||||
private _dataList: AiCharacter[]
|
||||
private _dataMap: Map<number, AiCharacters>
|
||||
private _dataList: AiCharacters[]
|
||||
constructor(_buf_: ByteBuf) {
|
||||
this._dataMap = new Map<number, AiCharacter>()
|
||||
this._dataMap = new Map<number, AiCharacters>()
|
||||
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<number, AiCharacter> { return this._dataMap; }
|
||||
getDataList(): AiCharacter[] { return this._dataList; }
|
||||
getDataMap(): Map<number, AiCharacters> { 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)
|
||||
|
||||
Reference in New Issue
Block a user