提交资源

This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-18 18:58:07 +08:00
parent 5a58823b4e
commit bc2ddf1fcd
50 changed files with 6498 additions and 38 deletions

View File

@@ -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)
{