提交新手引导

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-13 02:37:29 +08:00
parent ada44b2fd1
commit c519fae9a4
71 changed files with 4009 additions and 375 deletions

View File

@@ -12,6 +12,39 @@
export namespace TB {
export class TbGGlobal {
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 namespace TB {
export class TbGRole {
@@ -57,69 +90,6 @@ export class TbGRole {
}
export namespace TB {
export class TbGMap {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.mapName === undefined) { throw new Error() }
this.mapName = _json_.mapName
if (_json_.map1 === undefined) { throw new Error() }
this.map1 = _json_.map1
if (_json_.map2 === undefined) { throw new Error() }
this.map2 = _json_.map2
if (_json_.map3 === undefined) { throw new Error() }
this.map3 = _json_.map3
if (_json_.map1OffsetY === undefined) { throw new Error() }
this.map1OffsetY = _json_.map1OffsetY
if (_json_.map2OffsetY === undefined) { throw new Error() }
this.map2OffsetY = _json_.map2OffsetY
if (_json_.map3OffsetY === undefined) { throw new Error() }
this.map3OffsetY = _json_.map3OffsetY
}
/**
* id
*/
readonly id: number
/**
* 地图名称
*/
readonly mapName: string
/**
* 地图1(前)
*/
readonly map1: string
/**
* 地图2(后)
*/
readonly map2: string
/**
* 地图3(天空)
*/
readonly map3: string
/**
* 地图1(前) 偏移量Y
*/
readonly map1OffsetY: number
/**
* 地图2(后) 偏移量Y
*/
readonly map2OffsetY: number
/**
* 地图2(后) 偏移量Y
*/
readonly map3OffsetY: number
resolve(tables:Tables)
{
}
}
}
export namespace TB {
export class TbGRoleAttack {
@@ -237,6 +207,101 @@ export class TbGRoleSkill {
}
export namespace TB {
export class TbGMap {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.mapName === undefined) { throw new Error() }
this.mapName = _json_.mapName
if (_json_.map1 === undefined) { throw new Error() }
this.map1 = _json_.map1
if (_json_.map2 === undefined) { throw new Error() }
this.map2 = _json_.map2
if (_json_.map3 === undefined) { throw new Error() }
this.map3 = _json_.map3
if (_json_.map1OffsetY === undefined) { throw new Error() }
this.map1OffsetY = _json_.map1OffsetY
if (_json_.map2OffsetY === undefined) { throw new Error() }
this.map2OffsetY = _json_.map2OffsetY
if (_json_.map3OffsetY === undefined) { throw new Error() }
this.map3OffsetY = _json_.map3OffsetY
}
/**
* id
*/
readonly id: number
/**
* 地图名称
*/
readonly mapName: string
/**
* 地图1(前)
*/
readonly map1: string
/**
* 地图2(后)
*/
readonly map2: string
/**
* 地图3(天空)
*/
readonly map3: string
/**
* 地图1(前) 偏移量Y
*/
readonly map1OffsetY: number
/**
* 地图2(后) 偏移量Y
*/
readonly map2OffsetY: number
/**
* 地图2(后) 偏移量Y
*/
readonly map3OffsetY: number
resolve(tables:Tables)
{
}
}
}
export class TbGGlobal{
private _dataMap: Map<number, TB.TbGGlobal>
private _dataList: TB.TbGGlobal[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGGlobal>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGGlobal
_v = new TB.TbGGlobal(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbGGlobal> { return this._dataMap; }
getDataList(): TB.TbGGlobal[] { return this._dataList; }
get(key: number): TB.TbGGlobal | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbGRole{
@@ -271,38 +336,6 @@ export class TbGRole{
export class TbGMap{
private _dataMap: Map<number, TB.TbGMap>
private _dataList: TB.TbGMap[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGMap>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGMap
_v = new TB.TbGMap(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbGMap> { return this._dataMap; }
getDataList(): TB.TbGMap[] { return this._dataList; }
get(key: number): TB.TbGMap | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbGRoleAttack{
private _dataMap: Map<number, TB.TbGRoleAttack>
private _dataList: TB.TbGRoleAttack[]
@@ -399,31 +432,67 @@ export class TbGRoleSkill{
export class TbGMap{
private _dataMap: Map<number, TB.TbGMap>
private _dataList: TB.TbGMap[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGMap>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGMap
_v = new TB.TbGMap(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbGMap> { return this._dataMap; }
getDataList(): TB.TbGMap[] { return this._dataList; }
get(key: number): TB.TbGMap | 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 {
private _TbGGlobal: TbGGlobal
get TbGGlobal(): TbGGlobal { return this._TbGGlobal;}
private _TbGRole: TbGRole
get TbGRole(): TbGRole { return this._TbGRole;}
private _TbGMap: TbGMap
get TbGMap(): TbGMap { return this._TbGMap;}
private _TbGRoleAttack: TbGRoleAttack
get TbGRoleAttack(): TbGRoleAttack { return this._TbGRoleAttack;}
private _TbGRoleBattleRes: TbGRoleBattleRes
get TbGRoleBattleRes(): TbGRoleBattleRes { return this._TbGRoleBattleRes;}
private _TbGRoleSkill: TbGRoleSkill
get TbGRoleSkill(): TbGRoleSkill { return this._TbGRoleSkill;}
private _TbGMap: TbGMap
get TbGMap(): TbGMap { return this._TbGMap;}
constructor(loader: JsonLoader) {
this._TbGGlobal = new TbGGlobal(loader('tbgglobal'))
this._TbGRole = new TbGRole(loader('tbgrole'))
this._TbGMap = new TbGMap(loader('tbgmap'))
this._TbGRoleAttack = new TbGRoleAttack(loader('tbgroleattack'))
this._TbGRoleBattleRes = new TbGRoleBattleRes(loader('tbgrolebattleres'))
this._TbGRoleSkill = new TbGRoleSkill(loader('tbgroleskill'))
this._TbGMap = new TbGMap(loader('tbgmap'))
this._TbGGlobal.resolve(this)
this._TbGRole.resolve(this)
this._TbGMap.resolve(this)
this._TbGRoleAttack.resolve(this)
this._TbGRoleBattleRes.resolve(this)
this._TbGRoleSkill.resolve(this)
this._TbGMap.resolve(this)
}
}