mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
我也不知道在做什么 反正做的东西不少....
This commit is contained in:
@@ -426,6 +426,45 @@ export class TbGRoleUpStar {
|
||||
}
|
||||
|
||||
|
||||
export namespace TB {
|
||||
export class TbGRoleUpGrow {
|
||||
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.Blood === undefined) { throw new Error() }
|
||||
this.Blood = _json_.Blood
|
||||
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 Blood: number
|
||||
/**
|
||||
* 攻击成长
|
||||
*/
|
||||
readonly Attack: number
|
||||
/**
|
||||
* 防御成长
|
||||
*/
|
||||
readonly Defend: number
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export namespace TB {
|
||||
export class TbSServerInfo {
|
||||
|
||||
@@ -539,6 +578,8 @@ export class TbGOnHookMaps {
|
||||
this.id = _json_.id
|
||||
if (_json_.name === undefined) { throw new Error() }
|
||||
this.name = _json_.name
|
||||
if (_json_.mapImage === undefined) { throw new Error() }
|
||||
this.mapImage = _json_.mapImage
|
||||
if (_json_.mapId === undefined) { throw new Error() }
|
||||
this.mapId = _json_.mapId
|
||||
if (_json_.petIds === undefined) { throw new Error() }
|
||||
@@ -557,6 +598,10 @@ export class TbGOnHookMaps {
|
||||
* 地图名称
|
||||
*/
|
||||
readonly name: string
|
||||
/**
|
||||
* 地图图片
|
||||
*/
|
||||
readonly mapImage: string
|
||||
/**
|
||||
* 地图场景Id
|
||||
*/
|
||||
@@ -967,6 +1012,38 @@ export class TbGRoleUpStar{
|
||||
|
||||
|
||||
|
||||
export class TbGRoleUpGrow{
|
||||
private _dataMap: Map<number, TB.TbGRoleUpGrow>
|
||||
private _dataList: TB.TbGRoleUpGrow[]
|
||||
constructor(_json_: any) {
|
||||
this._dataMap = new Map<number, TB.TbGRoleUpGrow>()
|
||||
this._dataList = []
|
||||
for(var _json2_ of _json_) {
|
||||
let _v: TB.TbGRoleUpGrow
|
||||
_v = new TB.TbGRoleUpGrow(_json2_)
|
||||
this._dataList.push(_v)
|
||||
this._dataMap.set(_v.id, _v)
|
||||
}
|
||||
}
|
||||
|
||||
getDataMap(): Map<number, TB.TbGRoleUpGrow> { return this._dataMap; }
|
||||
getDataList(): TB.TbGRoleUpGrow[] { return this._dataList; }
|
||||
|
||||
get(key: number): TB.TbGRoleUpGrow | 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[]
|
||||
@@ -1150,6 +1227,8 @@ export class Tables {
|
||||
get TbGRoleUpLevel(): TbGRoleUpLevel { return this._TbGRoleUpLevel;}
|
||||
private _TbGRoleUpStar: TbGRoleUpStar
|
||||
get TbGRoleUpStar(): TbGRoleUpStar { return this._TbGRoleUpStar;}
|
||||
private _TbGRoleUpGrow: TbGRoleUpGrow
|
||||
get TbGRoleUpGrow(): TbGRoleUpGrow { return this._TbGRoleUpGrow;}
|
||||
private _TbSServerInfo: TbSServerInfo
|
||||
get TbSServerInfo(): TbSServerInfo { return this._TbSServerInfo;}
|
||||
private _TbGAttribute: TbGAttribute
|
||||
@@ -1172,6 +1251,7 @@ export class Tables {
|
||||
this._TbGResource = new TbGResource(loader('tbgresource'))
|
||||
this._TbGRoleUpLevel = new TbGRoleUpLevel(loader('tbgroleuplevel'))
|
||||
this._TbGRoleUpStar = new TbGRoleUpStar(loader('tbgroleupstar'))
|
||||
this._TbGRoleUpGrow = new TbGRoleUpGrow(loader('tbgroleupgrow'))
|
||||
this._TbSServerInfo = new TbSServerInfo(loader('tbsserverinfo'))
|
||||
this._TbGAttribute = new TbGAttribute(loader('tbgattribute'))
|
||||
this._TbGRoleBaseAttribute = new TbGRoleBaseAttribute(loader('tbgrolebaseattribute'))
|
||||
@@ -1188,6 +1268,7 @@ export class Tables {
|
||||
this._TbGResource.resolve(this)
|
||||
this._TbGRoleUpLevel.resolve(this)
|
||||
this._TbGRoleUpStar.resolve(this)
|
||||
this._TbGRoleUpGrow.resolve(this)
|
||||
this._TbSServerInfo.resolve(this)
|
||||
this._TbGAttribute.resolve(this)
|
||||
this._TbGRoleBaseAttribute.resolve(this)
|
||||
|
Reference in New Issue
Block a user