2025-08-12 15:01:59 +08:00
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
// <auto-generated>
|
|
|
|
|
// This code was generated by a tool.
|
|
|
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
|
|
// the code is regenerated.
|
|
|
|
|
// </auto-generated>
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import ByteBuf from '../luban/ByteBuf'
|
|
|
|
|
|
2025-08-12 16:08:58 +08:00
|
|
|
|
|
|
|
|
export enum Category {
|
|
|
|
|
/**
|
|
|
|
|
* 熟女
|
|
|
|
|
*/
|
|
|
|
|
shunv = 0,
|
|
|
|
|
/**
|
|
|
|
|
* 18岁
|
|
|
|
|
*/
|
|
|
|
|
eighteen = 1,
|
|
|
|
|
/**
|
|
|
|
|
* 辣妈
|
|
|
|
|
*/
|
|
|
|
|
lama = 2,
|
|
|
|
|
/**
|
|
|
|
|
* 捆绑
|
|
|
|
|
*/
|
|
|
|
|
kunbang = 3,
|
|
|
|
|
/**
|
|
|
|
|
* 公众野战
|
|
|
|
|
*/
|
|
|
|
|
publicfight = 4,
|
|
|
|
|
/**
|
|
|
|
|
* 卡通
|
|
|
|
|
*/
|
|
|
|
|
cartoon = 5,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export enum PriceType {
|
|
|
|
|
/**
|
|
|
|
|
* 免费
|
|
|
|
|
*/
|
|
|
|
|
free = 0,
|
|
|
|
|
/**
|
|
|
|
|
* 试用
|
|
|
|
|
*/
|
|
|
|
|
first_time_free = 1,
|
|
|
|
|
/**
|
|
|
|
|
* 收费
|
|
|
|
|
*/
|
|
|
|
|
pay = 2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-08-12 15:01:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export namespace demo {
|
|
|
|
|
export class item {
|
|
|
|
|
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this.id = _buf_.readInt()
|
|
|
|
|
this.name = _buf_.readString()
|
|
|
|
|
this.desc = _buf_.readString()
|
|
|
|
|
this.count = _buf_.readInt()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* id
|
|
|
|
|
*/
|
|
|
|
|
readonly id: number
|
|
|
|
|
/**
|
|
|
|
|
* 名称
|
|
|
|
|
*/
|
|
|
|
|
readonly name: string
|
|
|
|
|
/**
|
|
|
|
|
* 描述
|
|
|
|
|
*/
|
|
|
|
|
readonly desc: string
|
|
|
|
|
/**
|
|
|
|
|
* 个数
|
|
|
|
|
*/
|
|
|
|
|
readonly count: number
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export namespace demo {
|
|
|
|
|
export class Reward {
|
|
|
|
|
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this.id = _buf_.readInt()
|
|
|
|
|
this.name = _buf_.readString()
|
|
|
|
|
this.desc = _buf_.readString()
|
|
|
|
|
this.count = _buf_.readInt()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* id
|
|
|
|
|
*/
|
|
|
|
|
readonly id: number
|
|
|
|
|
/**
|
|
|
|
|
* 名称
|
|
|
|
|
*/
|
|
|
|
|
readonly name: string
|
|
|
|
|
/**
|
|
|
|
|
* 描述
|
|
|
|
|
*/
|
|
|
|
|
readonly desc: string
|
|
|
|
|
/**
|
|
|
|
|
* 个数
|
|
|
|
|
*/
|
|
|
|
|
readonly count: number
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-12 16:08:58 +08:00
|
|
|
export class Girls {
|
|
|
|
|
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this.id = _buf_.readInt()
|
|
|
|
|
this.name = _buf_.readString()
|
|
|
|
|
this.age = _buf_.readString()
|
|
|
|
|
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()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* id
|
|
|
|
|
*/
|
|
|
|
|
readonly id: number
|
|
|
|
|
/**
|
|
|
|
|
* 名称
|
|
|
|
|
*/
|
|
|
|
|
readonly name: string
|
|
|
|
|
/**
|
|
|
|
|
* 年龄
|
|
|
|
|
*/
|
|
|
|
|
readonly age: string
|
|
|
|
|
/**
|
|
|
|
|
* 分类
|
|
|
|
|
*/
|
|
|
|
|
readonly category: Category
|
|
|
|
|
/**
|
|
|
|
|
* 标签
|
|
|
|
|
*/
|
|
|
|
|
readonly tag: string[]
|
|
|
|
|
/**
|
|
|
|
|
* 付费类型
|
|
|
|
|
*/
|
|
|
|
|
readonly priceType: PriceType
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-12 15:01:59 +08:00
|
|
|
export class vector2 {
|
|
|
|
|
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this.x = _buf_.readFloat()
|
|
|
|
|
this.y = _buf_.readFloat()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
readonly x: number
|
|
|
|
|
readonly y: number
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class vector3 {
|
|
|
|
|
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this.x = _buf_.readFloat()
|
|
|
|
|
this.y = _buf_.readFloat()
|
|
|
|
|
this.z = _buf_.readFloat()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
readonly x: number
|
|
|
|
|
readonly y: number
|
|
|
|
|
readonly z: number
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class vector4 {
|
|
|
|
|
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this.x = _buf_.readFloat()
|
|
|
|
|
this.y = _buf_.readFloat()
|
|
|
|
|
this.z = _buf_.readFloat()
|
|
|
|
|
this.w = _buf_.readFloat()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
readonly x: number
|
|
|
|
|
readonly y: number
|
|
|
|
|
readonly z: number
|
|
|
|
|
readonly w: number
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export namespace demo {
|
|
|
|
|
export class TbReward {
|
|
|
|
|
private _dataMap: Map<number, demo.Reward>
|
|
|
|
|
private _dataList: demo.Reward[]
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this._dataMap = new Map<number, demo.Reward>()
|
|
|
|
|
this._dataList = []
|
|
|
|
|
for(let n = _buf_.readInt(); n > 0; n--) {
|
|
|
|
|
let _v: demo.Reward
|
|
|
|
|
_v = new demo.Reward(_buf_)
|
|
|
|
|
this._dataList.push(_v)
|
|
|
|
|
this._dataMap.set(_v.id, _v)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getDataMap(): Map<number, demo.Reward> { return this._dataMap; }
|
|
|
|
|
getDataList(): demo.Reward[] { return this._dataList; }
|
|
|
|
|
|
|
|
|
|
get(key: number): demo.Reward | undefined {
|
|
|
|
|
return this._dataMap.get(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
for(let data of this._dataList)
|
|
|
|
|
{
|
|
|
|
|
data.resolve(tables)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-08-12 16:08:58 +08:00
|
|
|
|
|
|
|
|
export class TbGirls {
|
|
|
|
|
private _dataMap: Map<number, Girls>
|
|
|
|
|
private _dataList: Girls[]
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this._dataMap = new Map<number, Girls>()
|
|
|
|
|
this._dataList = []
|
|
|
|
|
for(let n = _buf_.readInt(); n > 0; n--) {
|
|
|
|
|
let _v: Girls
|
|
|
|
|
_v = new Girls(_buf_)
|
|
|
|
|
this._dataList.push(_v)
|
|
|
|
|
this._dataMap.set(_v.id, _v)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getDataMap(): Map<number, Girls> { return this._dataMap; }
|
|
|
|
|
getDataList(): Girls[] { return this._dataList; }
|
|
|
|
|
|
|
|
|
|
get(key: number): Girls | undefined {
|
|
|
|
|
return this._dataMap.get(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
for(let data of this._dataList)
|
|
|
|
|
{
|
|
|
|
|
data.resolve(tables)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-12 15:01:59 +08:00
|
|
|
export namespace demo {
|
|
|
|
|
export class Tbitem {
|
|
|
|
|
private _dataMap: Map<number, demo.item>
|
|
|
|
|
private _dataList: demo.item[]
|
|
|
|
|
constructor(_buf_: ByteBuf) {
|
|
|
|
|
this._dataMap = new Map<number, demo.item>()
|
|
|
|
|
this._dataList = []
|
|
|
|
|
for(let n = _buf_.readInt(); n > 0; n--) {
|
|
|
|
|
let _v: demo.item
|
|
|
|
|
_v = new demo.item(_buf_)
|
|
|
|
|
this._dataList.push(_v)
|
|
|
|
|
this._dataMap.set(_v.id, _v)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getDataMap(): Map<number, demo.item> { return this._dataMap; }
|
|
|
|
|
getDataList(): demo.item[] { return this._dataList; }
|
|
|
|
|
|
|
|
|
|
get(key: number): demo.item | undefined {
|
|
|
|
|
return this._dataMap.get(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resolve(tables:Tables) {
|
|
|
|
|
for(let data of this._dataList)
|
|
|
|
|
{
|
|
|
|
|
data.resolve(tables)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ByteBufLoader = (file: string) => ByteBuf
|
|
|
|
|
|
|
|
|
|
export class Tables {
|
|
|
|
|
private _TbReward: demo.TbReward
|
|
|
|
|
get TbReward(): demo.TbReward { return this._TbReward;}
|
2025-08-12 16:08:58 +08:00
|
|
|
private _TbGirls: TbGirls
|
|
|
|
|
get TbGirls(): TbGirls { return this._TbGirls;}
|
2025-08-12 15:01:59 +08:00
|
|
|
private _Tbitem: demo.Tbitem
|
|
|
|
|
get Tbitem(): demo.Tbitem { return this._Tbitem;}
|
|
|
|
|
|
|
|
|
|
static getTableNames(): string[] {
|
|
|
|
|
let names: string[] = [];
|
|
|
|
|
names.push('demo_tbreward');
|
2025-08-12 16:08:58 +08:00
|
|
|
names.push('tbgirls');
|
2025-08-12 15:01:59 +08:00
|
|
|
names.push('demo_tbitem');
|
|
|
|
|
return names;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
constructor(loader: ByteBufLoader) {
|
|
|
|
|
this._TbReward = new demo.TbReward(loader('demo_tbreward'))
|
2025-08-12 16:08:58 +08:00
|
|
|
this._TbGirls = new TbGirls(loader('tbgirls'))
|
2025-08-12 15:01:59 +08:00
|
|
|
this._Tbitem = new demo.Tbitem(loader('demo_tbitem'))
|
|
|
|
|
|
|
|
|
|
this._TbReward.resolve(this)
|
2025-08-12 16:08:58 +08:00
|
|
|
this._TbGirls.resolve(this)
|
2025-08-12 15:01:59 +08:00
|
|
|
this._Tbitem.resolve(this)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|