提交锻造系统

This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-08 18:55:00 +08:00
parent e737a09828
commit e8a1cb9362
39 changed files with 9319 additions and 2035 deletions

View File

@@ -710,8 +710,8 @@ export class TbGRoleEquip {
this.id = _json_.id
if (_json_.name === undefined) { throw new Error() }
this.name = _json_.name
if (_json_.type === undefined) { throw new Error() }
this.type = _json_.type
if (_json_.position === undefined) { throw new Error() }
this.position = _json_.position
if (_json_.quality === undefined) { throw new Error() }
this.quality = _json_.quality
if (_json_.icon === undefined) { throw new Error() }
@@ -739,7 +739,7 @@ export class TbGRoleEquip {
/**
* 装备类别(1=武器/2=帽子/3=项链/4=护肩/5=衣服/6=腰带/7=手套/8=戒指/9=裤子/10=鞋子)
*/
readonly type: number
readonly position: number
/**
* 品质信息
*/
@@ -867,6 +867,33 @@ export class TbGRoleEquipQuality {
}
export namespace TB {
export class TbGRoleEquipType {
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
}
/**
* 类型Id
*/
readonly id: number
/**
* 名称
*/
readonly name: string
resolve(tables:Tables)
{
}
}
}
export namespace TB {
export class TbGSysFuben {
@@ -1504,6 +1531,38 @@ export class TbGRoleEquipQuality{
export class TbGRoleEquipType{
private _dataMap: Map<number, TB.TbGRoleEquipType>
private _dataList: TB.TbGRoleEquipType[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGRoleEquipType>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGRoleEquipType
_v = new TB.TbGRoleEquipType(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbGRoleEquipType> { return this._dataMap; }
getDataList(): TB.TbGRoleEquipType[] { return this._dataList; }
get(key: number): TB.TbGRoleEquipType | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbGSysFuben{
private _dataMap: Map<number, TB.TbGSysFuben>
private _dataList: TB.TbGSysFuben[]
@@ -1577,6 +1636,8 @@ export class Tables {
get TbGRoleEquipLevel(): TbGRoleEquipLevel { return this._TbGRoleEquipLevel;}
private _TbGRoleEquipQuality: TbGRoleEquipQuality
get TbGRoleEquipQuality(): TbGRoleEquipQuality { return this._TbGRoleEquipQuality;}
private _TbGRoleEquipType: TbGRoleEquipType
get TbGRoleEquipType(): TbGRoleEquipType { return this._TbGRoleEquipType;}
private _TbGSysFuben: TbGSysFuben
get TbGSysFuben(): TbGSysFuben { return this._TbGSysFuben;}
@@ -1600,6 +1661,7 @@ export class Tables {
this._TbGRoleEquip = new TbGRoleEquip(loader('tbgroleequip'))
this._TbGRoleEquipLevel = new TbGRoleEquipLevel(loader('tbgroleequiplevel'))
this._TbGRoleEquipQuality = new TbGRoleEquipQuality(loader('tbgroleequipquality'))
this._TbGRoleEquipType = new TbGRoleEquipType(loader('tbgroleequiptype'))
this._TbGSysFuben = new TbGSysFuben(loader('tbgsysfuben'))
this._TbGGlobal.resolve(this)
@@ -1621,6 +1683,7 @@ export class Tables {
this._TbGRoleEquip.resolve(this)
this._TbGRoleEquipLevel.resolve(this)
this._TbGRoleEquipQuality.resolve(this)
this._TbGRoleEquipType.resolve(this)
this._TbGSysFuben.resolve(this)
}
}