mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交代码
This commit is contained in:
@@ -61,6 +61,8 @@ export class TbGRole {
|
||||
this.roleAttackRange = _json_.roleAttackRange
|
||||
if (_json_.roleHight === undefined) { throw new Error() }
|
||||
this.roleHight = _json_.roleHight
|
||||
if (_json_.roleScale === undefined) { throw new Error() }
|
||||
this.roleScale = _json_.roleScale
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,6 +89,10 @@ export class TbGRole {
|
||||
* 角色高度
|
||||
*/
|
||||
readonly roleHight: number
|
||||
/**
|
||||
* 宠物默认缩放
|
||||
*/
|
||||
readonly roleScale: number
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
@@ -928,8 +934,12 @@ export class TbGSysDungeon {
|
||||
this.name = _json_.name
|
||||
if (_json_.banner === undefined) { throw new Error() }
|
||||
this.banner = _json_.banner
|
||||
if (_json_.type === undefined) { throw new Error() }
|
||||
this.type = _json_.type
|
||||
if (_json_.tigs === undefined) { throw new Error() }
|
||||
this.tigs = _json_.tigs
|
||||
if (_json_.consume === undefined) { throw new Error() }
|
||||
this.consume = new TbGEntity.TResource(_json_.consume)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -944,10 +954,18 @@ export class TbGSysDungeon {
|
||||
* 副本封面
|
||||
*/
|
||||
readonly banner: string
|
||||
/**
|
||||
* 游戏模式
|
||||
*/
|
||||
readonly type: string
|
||||
/**
|
||||
* 类标识
|
||||
*/
|
||||
readonly tigs: string
|
||||
/**
|
||||
* 消耗资源
|
||||
*/
|
||||
readonly consume: TbGEntity.TResource
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
|
Reference in New Issue
Block a user