mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
1006 lines
24 KiB
TypeScript
1006 lines
24 KiB
TypeScript
|
|
//------------------------------------------------------------------------------
|
|
// <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>
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGGlobal {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.args === undefined) { throw new Error() }
|
|
this.args = _json_.args
|
|
if (_json_.tig === undefined) { throw new Error() }
|
|
this.tig = _json_.tig
|
|
}
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 全局表参数
|
|
*/
|
|
readonly args: string
|
|
/**
|
|
* 描述
|
|
*/
|
|
readonly tig: string
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGRole {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.roleName === undefined) { throw new Error() }
|
|
this.roleName = _json_.roleName
|
|
if (_json_.spine === undefined) { throw new Error() }
|
|
this.spine = _json_.spine
|
|
if (_json_.roleSkillIds === undefined) { throw new Error() }
|
|
{ this.roleSkillIds = []; for(let _ele of _json_.roleSkillIds) { let _e; _e = _ele; this.roleSkillIds.push(_e);}}
|
|
if (_json_.roleAttackRange === undefined) { throw new Error() }
|
|
this.roleAttackRange = _json_.roleAttackRange
|
|
}
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 角色名称
|
|
*/
|
|
readonly roleName: string
|
|
/**
|
|
* 描述
|
|
*/
|
|
readonly spine: string
|
|
/**
|
|
* 角色技能Id列表
|
|
*/
|
|
readonly roleSkillIds: number[]
|
|
/**
|
|
* 角色攻击范围
|
|
*/
|
|
readonly roleAttackRange: number
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGRoleAttack {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.attackWay === undefined) { throw new Error() }
|
|
this.attackWay = _json_.attackWay
|
|
if (_json_.attackArgs === undefined) { throw new Error() }
|
|
{ this.attackArgs = []; for(let _ele of _json_.attackArgs) { let _e; _e = _ele; this.attackArgs.push(_e);}}
|
|
}
|
|
|
|
/**
|
|
* 角色Id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 攻击方式
|
|
*/
|
|
readonly attackWay: string
|
|
/**
|
|
* 攻击参数
|
|
*/
|
|
readonly attackArgs: string[]
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGRoleBattleRes {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.resName === undefined) { throw new Error() }
|
|
this.resName = _json_.resName
|
|
if (_json_.resType === undefined) { throw new Error() }
|
|
this.resType = _json_.resType
|
|
if (_json_.resSrc === undefined) { throw new Error() }
|
|
this.resSrc = _json_.resSrc
|
|
}
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 资源名称
|
|
*/
|
|
readonly resName: string
|
|
/**
|
|
* 资源类型
|
|
*/
|
|
readonly resType: string
|
|
/**
|
|
* 资源地址
|
|
*/
|
|
readonly resSrc: string
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGRoleSkill {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.skillName === undefined) { throw new Error() }
|
|
this.skillName = _json_.skillName
|
|
if (_json_.skillController === undefined) { throw new Error() }
|
|
this.skillController = _json_.skillController
|
|
if (_json_.skillArgs === undefined) { throw new Error() }
|
|
{ this.skillArgs = []; for(let _ele of _json_.skillArgs) { let _e; _e = _ele; this.skillArgs.push(_e);}}
|
|
if (_json_.skillText === undefined) { throw new Error() }
|
|
this.skillText = _json_.skillText
|
|
}
|
|
|
|
/**
|
|
* 角色Id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 技能名称
|
|
*/
|
|
readonly skillName: string
|
|
/**
|
|
* 技能控制器
|
|
*/
|
|
readonly skillController: string
|
|
/**
|
|
* 技能参数
|
|
*/
|
|
readonly skillArgs: string[]
|
|
/**
|
|
* 技能介绍
|
|
*/
|
|
readonly skillText: string
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGMap {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.mapName === undefined) { throw new Error() }
|
|
this.mapName = _json_.mapName
|
|
if (_json_.map1 === undefined) { throw new Error() }
|
|
this.map1 = _json_.map1
|
|
if (_json_.map2 === undefined) { throw new Error() }
|
|
this.map2 = _json_.map2
|
|
if (_json_.map3 === undefined) { throw new Error() }
|
|
this.map3 = _json_.map3
|
|
if (_json_.map1OffsetY === undefined) { throw new Error() }
|
|
this.map1OffsetY = _json_.map1OffsetY
|
|
if (_json_.map2OffsetY === undefined) { throw new Error() }
|
|
this.map2OffsetY = _json_.map2OffsetY
|
|
if (_json_.map3OffsetY === undefined) { throw new Error() }
|
|
this.map3OffsetY = _json_.map3OffsetY
|
|
if (_json_.scale === undefined) { throw new Error() }
|
|
this.scale = _json_.scale
|
|
}
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 地图名称
|
|
*/
|
|
readonly mapName: string
|
|
/**
|
|
* 地图1(前)
|
|
*/
|
|
readonly map1: string
|
|
/**
|
|
* 地图2(后)
|
|
*/
|
|
readonly map2: string
|
|
/**
|
|
* 地图3(天空)
|
|
*/
|
|
readonly map3: string
|
|
/**
|
|
* 地图1(前) 偏移量Y
|
|
*/
|
|
readonly map1OffsetY: number
|
|
/**
|
|
* 地图2(后) 偏移量Y
|
|
*/
|
|
readonly map2OffsetY: number
|
|
/**
|
|
* 地图2(后) 偏移量Y
|
|
*/
|
|
readonly map3OffsetY: number
|
|
/**
|
|
* 地图缩放
|
|
*/
|
|
readonly scale: number
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGOnHookGlobal {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.args === undefined) { throw new Error() }
|
|
this.args = _json_.args
|
|
if (_json_.tig === undefined) { throw new Error() }
|
|
this.tig = _json_.tig
|
|
}
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 全局表参数
|
|
*/
|
|
readonly args: string
|
|
/**
|
|
* 描述
|
|
*/
|
|
readonly tig: string
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGResource {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.name === undefined) { throw new Error() }
|
|
this.name = _json_.name
|
|
if (_json_.tig === undefined) { throw new Error() }
|
|
this.tig = _json_.tig
|
|
}
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 资源名称
|
|
*/
|
|
readonly name: string
|
|
/**
|
|
* 描述
|
|
*/
|
|
readonly tig: string
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGRoleUpLevel {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.grade === undefined) { throw new Error() }
|
|
this.grade = _json_.grade
|
|
if (_json_.materials === undefined) { throw new Error() }
|
|
{ this.materials = []; for(let _ele of _json_.materials) { let _e; _e = new TbGEntity.Resource(_ele); this.materials.push(_e);}}
|
|
}
|
|
|
|
/**
|
|
* 宠物等级
|
|
*/
|
|
readonly grade: number
|
|
/**
|
|
* 消耗的材料
|
|
*/
|
|
readonly materials: TbGEntity.Resource[]
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TbGEntity {
|
|
/**
|
|
* 资源信息
|
|
*/
|
|
export class Resource {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.value === undefined) { throw new Error() }
|
|
this.value = _json_.value
|
|
}
|
|
|
|
/**
|
|
* 资源Id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 资源数量
|
|
*/
|
|
readonly value: number
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGRoleUpStar {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.grade === undefined) { throw new Error() }
|
|
this.grade = _json_.grade
|
|
if (_json_.merge === undefined) { throw new Error() }
|
|
this.merge = _json_.merge
|
|
}
|
|
|
|
/**
|
|
* 宠物星级
|
|
*/
|
|
readonly grade: number
|
|
/**
|
|
* 合成数量
|
|
*/
|
|
readonly merge: number
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbSServerInfo {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.args === undefined) { throw new Error() }
|
|
this.args = _json_.args
|
|
if (_json_.tig === undefined) { throw new Error() }
|
|
this.tig = _json_.tig
|
|
}
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 全局表参数
|
|
*/
|
|
readonly args: string
|
|
/**
|
|
* 描述
|
|
*/
|
|
readonly tig: string
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGAttribute {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.name === undefined) { throw new Error() }
|
|
this.name = _json_.name
|
|
if (_json_.sign === undefined) { throw new Error() }
|
|
this.sign = _json_.sign
|
|
}
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 属性名称
|
|
*/
|
|
readonly name: string
|
|
/**
|
|
* 属性标识
|
|
*/
|
|
readonly sign: string
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
export namespace TB {
|
|
export class TbGRoleBaseAttribute {
|
|
|
|
constructor(_json_: any) {
|
|
if (_json_.id === undefined) { throw new Error() }
|
|
this.id = _json_.id
|
|
if (_json_.Attack === undefined) { throw new Error() }
|
|
this.Attack = _json_.Attack
|
|
if (_json_.Defend === undefined) { throw new Error() }
|
|
this.Defend = _json_.Defend
|
|
}
|
|
|
|
/**
|
|
* 角色Id (0 则默认)
|
|
*/
|
|
readonly id: number
|
|
/**
|
|
* 默认攻击属性
|
|
*/
|
|
readonly Attack: number
|
|
/**
|
|
* 默认防御属性
|
|
*/
|
|
readonly Defend: number
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGGlobal{
|
|
private _dataMap: Map<number, TB.TbGGlobal>
|
|
private _dataList: TB.TbGGlobal[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGGlobal>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGGlobal
|
|
_v = new TB.TbGGlobal(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGGlobal> { return this._dataMap; }
|
|
getDataList(): TB.TbGGlobal[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGGlobal | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGRole{
|
|
private _dataMap: Map<number, TB.TbGRole>
|
|
private _dataList: TB.TbGRole[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGRole>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGRole
|
|
_v = new TB.TbGRole(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGRole> { return this._dataMap; }
|
|
getDataList(): TB.TbGRole[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGRole | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGRoleAttack{
|
|
private _dataMap: Map<number, TB.TbGRoleAttack>
|
|
private _dataList: TB.TbGRoleAttack[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGRoleAttack>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGRoleAttack
|
|
_v = new TB.TbGRoleAttack(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGRoleAttack> { return this._dataMap; }
|
|
getDataList(): TB.TbGRoleAttack[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGRoleAttack | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGRoleBattleRes{
|
|
private _dataMap: Map<number, TB.TbGRoleBattleRes>
|
|
private _dataList: TB.TbGRoleBattleRes[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGRoleBattleRes>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGRoleBattleRes
|
|
_v = new TB.TbGRoleBattleRes(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGRoleBattleRes> { return this._dataMap; }
|
|
getDataList(): TB.TbGRoleBattleRes[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGRoleBattleRes | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGRoleSkill{
|
|
private _dataMap: Map<number, TB.TbGRoleSkill>
|
|
private _dataList: TB.TbGRoleSkill[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGRoleSkill>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGRoleSkill
|
|
_v = new TB.TbGRoleSkill(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGRoleSkill> { return this._dataMap; }
|
|
getDataList(): TB.TbGRoleSkill[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGRoleSkill | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGMap{
|
|
private _dataMap: Map<number, TB.TbGMap>
|
|
private _dataList: TB.TbGMap[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGMap>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGMap
|
|
_v = new TB.TbGMap(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGMap> { return this._dataMap; }
|
|
getDataList(): TB.TbGMap[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGMap | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGOnHookGlobal{
|
|
private _dataMap: Map<number, TB.TbGOnHookGlobal>
|
|
private _dataList: TB.TbGOnHookGlobal[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGOnHookGlobal>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGOnHookGlobal
|
|
_v = new TB.TbGOnHookGlobal(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGOnHookGlobal> { return this._dataMap; }
|
|
getDataList(): TB.TbGOnHookGlobal[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGOnHookGlobal | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGResource{
|
|
private _dataMap: Map<number, TB.TbGResource>
|
|
private _dataList: TB.TbGResource[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGResource>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGResource
|
|
_v = new TB.TbGResource(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGResource> { return this._dataMap; }
|
|
getDataList(): TB.TbGResource[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGResource | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGRoleUpLevel{
|
|
private _dataMap: Map<number, TB.TbGRoleUpLevel>
|
|
private _dataList: TB.TbGRoleUpLevel[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGRoleUpLevel>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGRoleUpLevel
|
|
_v = new TB.TbGRoleUpLevel(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.grade, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGRoleUpLevel> { return this._dataMap; }
|
|
getDataList(): TB.TbGRoleUpLevel[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGRoleUpLevel | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGRoleUpStar{
|
|
private _dataMap: Map<number, TB.TbGRoleUpStar>
|
|
private _dataList: TB.TbGRoleUpStar[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGRoleUpStar>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGRoleUpStar
|
|
_v = new TB.TbGRoleUpStar(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.grade, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGRoleUpStar> { return this._dataMap; }
|
|
getDataList(): TB.TbGRoleUpStar[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGRoleUpStar | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbSServerInfo{
|
|
private _dataMap: Map<number, TB.TbSServerInfo>
|
|
private _dataList: TB.TbSServerInfo[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbSServerInfo>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbSServerInfo
|
|
_v = new TB.TbSServerInfo(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbSServerInfo> { return this._dataMap; }
|
|
getDataList(): TB.TbSServerInfo[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbSServerInfo | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGAttribute{
|
|
private _dataMap: Map<number, TB.TbGAttribute>
|
|
private _dataList: TB.TbGAttribute[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGAttribute>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGAttribute
|
|
_v = new TB.TbGAttribute(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGAttribute> { return this._dataMap; }
|
|
getDataList(): TB.TbGAttribute[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGAttribute | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class TbGRoleBaseAttribute{
|
|
private _dataMap: Map<number, TB.TbGRoleBaseAttribute>
|
|
private _dataList: TB.TbGRoleBaseAttribute[]
|
|
constructor(_json_: any) {
|
|
this._dataMap = new Map<number, TB.TbGRoleBaseAttribute>()
|
|
this._dataList = []
|
|
for(var _json2_ of _json_) {
|
|
let _v: TB.TbGRoleBaseAttribute
|
|
_v = new TB.TbGRoleBaseAttribute(_json2_)
|
|
this._dataList.push(_v)
|
|
this._dataMap.set(_v.id, _v)
|
|
}
|
|
}
|
|
|
|
getDataMap(): Map<number, TB.TbGRoleBaseAttribute> { return this._dataMap; }
|
|
getDataList(): TB.TbGRoleBaseAttribute[] { return this._dataList; }
|
|
|
|
get(key: number): TB.TbGRoleBaseAttribute | undefined { return this._dataMap.get(key); }
|
|
|
|
resolve(tables:Tables)
|
|
{
|
|
for(let data of this._dataList)
|
|
{
|
|
data.resolve(tables)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type JsonLoader = (file: string) => any
|
|
|
|
export class Tables {
|
|
private _TbGGlobal: TbGGlobal
|
|
get TbGGlobal(): TbGGlobal { return this._TbGGlobal;}
|
|
private _TbGRole: TbGRole
|
|
get TbGRole(): TbGRole { return this._TbGRole;}
|
|
private _TbGRoleAttack: TbGRoleAttack
|
|
get TbGRoleAttack(): TbGRoleAttack { return this._TbGRoleAttack;}
|
|
private _TbGRoleBattleRes: TbGRoleBattleRes
|
|
get TbGRoleBattleRes(): TbGRoleBattleRes { return this._TbGRoleBattleRes;}
|
|
private _TbGRoleSkill: TbGRoleSkill
|
|
get TbGRoleSkill(): TbGRoleSkill { return this._TbGRoleSkill;}
|
|
private _TbGMap: TbGMap
|
|
get TbGMap(): TbGMap { return this._TbGMap;}
|
|
private _TbGOnHookGlobal: TbGOnHookGlobal
|
|
get TbGOnHookGlobal(): TbGOnHookGlobal { return this._TbGOnHookGlobal;}
|
|
private _TbGResource: TbGResource
|
|
get TbGResource(): TbGResource { return this._TbGResource;}
|
|
private _TbGRoleUpLevel: TbGRoleUpLevel
|
|
get TbGRoleUpLevel(): TbGRoleUpLevel { return this._TbGRoleUpLevel;}
|
|
private _TbGRoleUpStar: TbGRoleUpStar
|
|
get TbGRoleUpStar(): TbGRoleUpStar { return this._TbGRoleUpStar;}
|
|
private _TbSServerInfo: TbSServerInfo
|
|
get TbSServerInfo(): TbSServerInfo { return this._TbSServerInfo;}
|
|
private _TbGAttribute: TbGAttribute
|
|
get TbGAttribute(): TbGAttribute { return this._TbGAttribute;}
|
|
private _TbGRoleBaseAttribute: TbGRoleBaseAttribute
|
|
get TbGRoleBaseAttribute(): TbGRoleBaseAttribute { return this._TbGRoleBaseAttribute;}
|
|
|
|
constructor(loader: JsonLoader) {
|
|
this._TbGGlobal = new TbGGlobal(loader('tbgglobal'))
|
|
this._TbGRole = new TbGRole(loader('tbgrole'))
|
|
this._TbGRoleAttack = new TbGRoleAttack(loader('tbgroleattack'))
|
|
this._TbGRoleBattleRes = new TbGRoleBattleRes(loader('tbgrolebattleres'))
|
|
this._TbGRoleSkill = new TbGRoleSkill(loader('tbgroleskill'))
|
|
this._TbGMap = new TbGMap(loader('tbgmap'))
|
|
this._TbGOnHookGlobal = new TbGOnHookGlobal(loader('tbgonhookglobal'))
|
|
this._TbGResource = new TbGResource(loader('tbgresource'))
|
|
this._TbGRoleUpLevel = new TbGRoleUpLevel(loader('tbgroleuplevel'))
|
|
this._TbGRoleUpStar = new TbGRoleUpStar(loader('tbgroleupstar'))
|
|
this._TbSServerInfo = new TbSServerInfo(loader('tbsserverinfo'))
|
|
this._TbGAttribute = new TbGAttribute(loader('tbgattribute'))
|
|
this._TbGRoleBaseAttribute = new TbGRoleBaseAttribute(loader('tbgrolebaseattribute'))
|
|
|
|
this._TbGGlobal.resolve(this)
|
|
this._TbGRole.resolve(this)
|
|
this._TbGRoleAttack.resolve(this)
|
|
this._TbGRoleBattleRes.resolve(this)
|
|
this._TbGRoleSkill.resolve(this)
|
|
this._TbGMap.resolve(this)
|
|
this._TbGOnHookGlobal.resolve(this)
|
|
this._TbGResource.resolve(this)
|
|
this._TbGRoleUpLevel.resolve(this)
|
|
this._TbGRoleUpStar.resolve(this)
|
|
this._TbSServerInfo.resolve(this)
|
|
this._TbGAttribute.resolve(this)
|
|
this._TbGRoleBaseAttribute.resolve(this)
|
|
}
|
|
}
|