mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交资源
This commit is contained in:
@@ -288,18 +288,26 @@ export class TbGResource {
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.icon === undefined) { throw new Error() }
|
||||
this.icon = _json_.icon
|
||||
if (_json_.name === undefined) { throw new Error() }
|
||||
this.name = _json_.name
|
||||
if (_json_.tig === undefined) { throw new Error() }
|
||||
this.tig = _json_.tig
|
||||
if (_json_.args === undefined) { throw new Error() }
|
||||
this.args = _json_.args
|
||||
if (_json_.quality === undefined) { throw new Error() }
|
||||
this.quality = _json_.quality
|
||||
}
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 资源图片
|
||||
*/
|
||||
readonly icon: string
|
||||
/**
|
||||
* 资源名称
|
||||
*/
|
||||
@@ -312,6 +320,10 @@ export class TbGResource {
|
||||
* 额外参数
|
||||
*/
|
||||
readonly args: string
|
||||
/**
|
||||
* 资源品质
|
||||
*/
|
||||
readonly quality: number
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
|
Reference in New Issue
Block a user