配置全部转移luban

This commit is contained in:
2025-08-12 16:58:02 +08:00
parent 75cc583a44
commit 83370bd0ef
47 changed files with 423 additions and 4340 deletions
+173 -9
View File
@@ -137,7 +137,7 @@ export class Reward {
export class Girls {
export class Girl {
constructor(_buf_: ByteBuf) {
this.id = _buf_.readInt()
@@ -146,6 +146,8 @@ export class Girls {
this.category = _buf_.readInt()
{ let n = Math.min(_buf_.readSize(), _buf_.size); this.tag = []; for(let i = 0 ; i < n ; i++) { let _e0 ;_e0 = _buf_.readString(); this.tag.push(_e0);}}
this.priceType = _buf_.readInt()
this.avatarPath = _buf_.readString()
this.starCount = _buf_.readInt()
}
/**
@@ -172,6 +174,14 @@ export class Girls {
* 付费类型
*/
readonly priceType: PriceType
/**
* 头像路径
*/
readonly avatarPath: string
/**
* 评价星数
*/
readonly starCount: number
resolve(tables:Tables) {
@@ -180,6 +190,84 @@ export class Girls {
}
}
export class GirlDetail {
constructor(_buf_: ByteBuf) {
this.id = _buf_.readInt()
this.detailDesc = _buf_.readString()
{ let n = Math.min(_buf_.readSize(), _buf_.size); this.pics = []; for(let i = 0 ; i < n ; i++) { let _e0 ;_e0 = _buf_.readString(); this.pics.push(_e0);}}
}
/**
* id
*/
readonly id: number
/**
* 自我介绍
*/
readonly detailDesc: string
/**
* 资源列表
*/
readonly pics: string[]
resolve(tables:Tables) {
}
}
export class Theme {
constructor(_buf_: ByteBuf) {
this.id = _buf_.readInt()
this.name = _buf_.readString()
this.category = _buf_.readInt()
this.isRelease = _buf_.readBool()
this.path = _buf_.readString()
}
/**
* id
*/
readonly id: number
/**
* 主题名称
*/
readonly name: string
/**
* 主题枚举
*/
readonly category: Category
/**
* 是否解锁
*/
readonly isRelease: boolean
/**
* 图片路径
*/
readonly path: string
resolve(tables:Tables) {
}
}
@@ -291,23 +379,89 @@ export class TbReward {
export class TbGirls {
private _dataMap: Map<number, Girls>
private _dataList: Girls[]
private _dataMap: Map<number, Girl>
private _dataList: Girl[]
constructor(_buf_: ByteBuf) {
this._dataMap = new Map<number, Girls>()
this._dataMap = new Map<number, Girl>()
this._dataList = []
for(let n = _buf_.readInt(); n > 0; n--) {
let _v: Girls
_v = new Girls(_buf_)
let _v: Girl
_v = new Girl(_buf_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, Girls> { return this._dataMap; }
getDataList(): Girls[] { return this._dataList; }
getDataMap(): Map<number, Girl> { return this._dataMap; }
getDataList(): Girl[] { return this._dataList; }
get(key: number): Girls | undefined {
get(key: number): Girl | undefined {
return this._dataMap.get(key);
}
resolve(tables:Tables) {
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbGirlsDetail {
private _dataMap: Map<number, GirlDetail>
private _dataList: GirlDetail[]
constructor(_buf_: ByteBuf) {
this._dataMap = new Map<number, GirlDetail>()
this._dataList = []
for(let n = _buf_.readInt(); n > 0; n--) {
let _v: GirlDetail
_v = new GirlDetail(_buf_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, GirlDetail> { return this._dataMap; }
getDataList(): GirlDetail[] { return this._dataList; }
get(key: number): GirlDetail | undefined {
return this._dataMap.get(key);
}
resolve(tables:Tables) {
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbThemes {
private _dataMap: Map<number, Theme>
private _dataList: Theme[]
constructor(_buf_: ByteBuf) {
this._dataMap = new Map<number, Theme>()
this._dataList = []
for(let n = _buf_.readInt(); n > 0; n--) {
let _v: Theme
_v = new Theme(_buf_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, Theme> { return this._dataMap; }
getDataList(): Theme[] { return this._dataList; }
get(key: number): Theme | undefined {
return this._dataMap.get(key);
}
@@ -363,6 +517,10 @@ export class Tables {
get TbReward(): demo.TbReward { return this._TbReward;}
private _TbGirls: TbGirls
get TbGirls(): TbGirls { return this._TbGirls;}
private _TbGirlsDetail: TbGirlsDetail
get TbGirlsDetail(): TbGirlsDetail { return this._TbGirlsDetail;}
private _TbThemes: TbThemes
get TbThemes(): TbThemes { return this._TbThemes;}
private _Tbitem: demo.Tbitem
get Tbitem(): demo.Tbitem { return this._Tbitem;}
@@ -370,6 +528,8 @@ export class Tables {
let names: string[] = [];
names.push('demo_tbreward');
names.push('tbgirls');
names.push('tbgirlsdetail');
names.push('tbthemes');
names.push('demo_tbitem');
return names;
}
@@ -377,10 +537,14 @@ export class Tables {
constructor(loader: ByteBufLoader) {
this._TbReward = new demo.TbReward(loader('demo_tbreward'))
this._TbGirls = new TbGirls(loader('tbgirls'))
this._TbGirlsDetail = new TbGirlsDetail(loader('tbgirlsdetail'))
this._TbThemes = new TbThemes(loader('tbthemes'))
this._Tbitem = new demo.Tbitem(loader('demo_tbitem'))
this._TbReward.resolve(this)
this._TbGirls.resolve(this)
this._TbGirlsDetail.resolve(this)
this._TbThemes.resolve(this)
this._Tbitem.resolve(this)
}
}