提交开宝箱

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-01-11 02:46:36 +08:00
parent d0d80bb9ad
commit 05777799a3
51 changed files with 7665 additions and 2502 deletions

View File

@@ -504,6 +504,33 @@ export class TbGAttribute {
}
export namespace TB {
export class TbGAttributeFC {
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 TbGRoleBaseAttribute {
@@ -834,7 +861,7 @@ export class TbGRoleEquipLevel {
*/
readonly id: number
/**
* 下一级所需经验
* 所需经验
*/
readonly exp: number
@@ -1331,6 +1358,38 @@ export class TbGAttribute{
export class TbGAttributeFC{
private _dataMap: Map<number, TB.TbGAttributeFC>
private _dataList: TB.TbGAttributeFC[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGAttributeFC>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGAttributeFC
_v = new TB.TbGAttributeFC(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbGAttributeFC> { return this._dataMap; }
getDataList(): TB.TbGAttributeFC[] { return this._dataList; }
get(key: number): TB.TbGAttributeFC | 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[]
@@ -1646,6 +1705,8 @@ export class Tables {
get TbSServerInfo(): TbSServerInfo { return this._TbSServerInfo;}
private _TbGAttribute: TbGAttribute
get TbGAttribute(): TbGAttribute { return this._TbGAttribute;}
private _TbGAttributeFC: TbGAttributeFC
get TbGAttributeFC(): TbGAttributeFC { return this._TbGAttributeFC;}
private _TbGRoleBaseAttribute: TbGRoleBaseAttribute
get TbGRoleBaseAttribute(): TbGRoleBaseAttribute { return this._TbGRoleBaseAttribute;}
private _TbGOnHookMaps: TbGOnHookMaps
@@ -1678,6 +1739,7 @@ export class Tables {
this._TbGRoleUpGrow = new TbGRoleUpGrow(loader('tbgroleupgrow'))
this._TbSServerInfo = new TbSServerInfo(loader('tbsserverinfo'))
this._TbGAttribute = new TbGAttribute(loader('tbgattribute'))
this._TbGAttributeFC = new TbGAttributeFC(loader('tbgattributefc'))
this._TbGRoleBaseAttribute = new TbGRoleBaseAttribute(loader('tbgrolebaseattribute'))
this._TbGOnHookMaps = new TbGOnHookMaps(loader('tbgonhookmaps'))
this._TbGOnHookMap120001 = new TbGOnHookMap120001(loader('tbgonhookmap120001'))
@@ -1700,6 +1762,7 @@ export class Tables {
this._TbGRoleUpGrow.resolve(this)
this._TbSServerInfo.resolve(this)
this._TbGAttribute.resolve(this)
this._TbGAttributeFC.resolve(this)
this._TbGRoleBaseAttribute.resolve(this)
this._TbGOnHookMaps.resolve(this)
this._TbGOnHookMap120001.resolve(this)