无头模式测试

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-22 03:51:37 +08:00
parent 5ab90ea221
commit 7389f6d716
535 changed files with 991 additions and 162534 deletions

View File

@@ -426,6 +426,39 @@ export class TbGRoleCStar {
}
export namespace TB {
export class TbSServerInfo {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.args === undefined) { throw new Error() }
this.args = _json_.args
if (_json_.tig === undefined) { throw new Error() }
this.tig = _json_.tig
}
/**
* id
*/
readonly id: number
/**
* 全局表参数
*/
readonly args: string
/**
* 描述
*/
readonly tig: string
resolve(tables:Tables)
{
}
}
}
export class TbGGlobal{
@@ -748,6 +781,38 @@ export class TbGRoleCStar{
export class TbSServerInfo{
private _dataMap: Map<number, TB.TbSServerInfo>
private _dataList: TB.TbSServerInfo[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbSServerInfo>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbSServerInfo
_v = new TB.TbSServerInfo(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbSServerInfo> { return this._dataMap; }
getDataList(): TB.TbSServerInfo[] { return this._dataList; }
get(key: number): TB.TbSServerInfo | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
type JsonLoader = (file: string) => any
export class Tables {
@@ -771,6 +836,8 @@ export class Tables {
get TbGRoleCUp(): TbGRoleCUp { return this._TbGRoleCUp;}
private _TbGRoleCStar: TbGRoleCStar
get TbGRoleCStar(): TbGRoleCStar { return this._TbGRoleCStar;}
private _TbSServerInfo: TbSServerInfo
get TbSServerInfo(): TbSServerInfo { return this._TbSServerInfo;}
constructor(loader: JsonLoader) {
this._TbGGlobal = new TbGGlobal(loader('tbgglobal'))
@@ -783,6 +850,7 @@ export class Tables {
this._TbGResource = new TbGResource(loader('tbgresource'))
this._TbGRoleCUp = new TbGRoleCUp(loader('tbgrolecup'))
this._TbGRoleCStar = new TbGRoleCStar(loader('tbgrolecstar'))
this._TbSServerInfo = new TbSServerInfo(loader('tbsserverinfo'))
this._TbGGlobal.resolve(this)
this._TbGRole.resolve(this)
@@ -794,5 +862,6 @@ export class Tables {
this._TbGResource.resolve(this)
this._TbGRoleCUp.resolve(this)
this._TbGRoleCStar.resolve(this)
this._TbSServerInfo.resolve(this)
}
}

View File

@@ -0,0 +1,7 @@
[
{
"id": 100001,
"args": "[100000]",
"tig": "服务器账号 (用来帧同步裁决)"
}
]

View File

@@ -0,0 +1,11 @@
{
"ver": "2.0.1",
"importer": "json",
"imported": true,
"uuid": "b46ccddd-adbd-446c-88a9-68a0e9f76a32",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}