更新无限地图

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-03 02:57:38 +08:00
parent 996b0ecfac
commit ca5fa0cc92
504 changed files with 2213 additions and 359 deletions

View File

@@ -0,0 +1,55 @@
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
export class TableGMap {
static TableName: string = "GMap";
static getAllConfig(): { [id: string]: TableGMap } {
return JsonUtil.get(TableGMap.TableName);
}
static getConfig(id: number | string) {
return TableGMap.getAllConfig()[id] as TableGMap;
}
private data: any;
init(id: number) {
var table = JsonUtil.get(TableGMap.TableName);
this.data = table[id];
this._id = id;
}
/** id */
private _id: number = 0;
/** id */
get id(): number {
return this.data.id;
}
/** 地图名称 */
get mapName(): string {
return this.data.mapName;
}
/** 地图1(前) */
get map1(): string {
return this.data.map1;
}
/** 地图2(后) */
get map2(): string {
return this.data.map2;
}
/** 地图3(天空) */
get map3(): string {
return this.data.map3;
}
/** 地图1(前) 偏移量Y */
get map1OffsetY(): number {
return this.data.map1OffsetY;
}
/** 地图2(后) 偏移量Y */
get map2OffsetY(): number {
return this.data.map2OffsetY;
}
/** 地图2(后) 偏移量Y */
get map3OffsetY(): number {
return this.data.map3OffsetY;
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "57cb0026-1494-41ca-948c-346b43746aa7",
"files": [],
"subMetas": {},
"userData": {}
}