mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
我也不知道在做什么 反正做的东西不少....
This commit is contained in:
@@ -426,6 +426,45 @@ export class TbGRoleUpStar {
|
||||
}
|
||||
|
||||
|
||||
export namespace TB {
|
||||
export class TbGRoleUpGrow {
|
||||
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.Blood === undefined) { throw new Error() }
|
||||
this.Blood = _json_.Blood
|
||||
if (_json_.Attack === undefined) { throw new Error() }
|
||||
this.Attack = _json_.Attack
|
||||
if (_json_.Defend === undefined) { throw new Error() }
|
||||
this.Defend = _json_.Defend
|
||||
}
|
||||
|
||||
/**
|
||||
* 角色Id (0 则默认)
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 血量成长
|
||||
*/
|
||||
readonly Blood: number
|
||||
/**
|
||||
* 攻击成长
|
||||
*/
|
||||
readonly Attack: number
|
||||
/**
|
||||
* 防御成长
|
||||
*/
|
||||
readonly Defend: number
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export namespace TB {
|
||||
export class TbSServerInfo {
|
||||
|
||||
@@ -539,6 +578,8 @@ export class TbGOnHookMaps {
|
||||
this.id = _json_.id
|
||||
if (_json_.name === undefined) { throw new Error() }
|
||||
this.name = _json_.name
|
||||
if (_json_.mapImage === undefined) { throw new Error() }
|
||||
this.mapImage = _json_.mapImage
|
||||
if (_json_.mapId === undefined) { throw new Error() }
|
||||
this.mapId = _json_.mapId
|
||||
if (_json_.petIds === undefined) { throw new Error() }
|
||||
@@ -557,6 +598,10 @@ export class TbGOnHookMaps {
|
||||
* 地图名称
|
||||
*/
|
||||
readonly name: string
|
||||
/**
|
||||
* 地图图片
|
||||
*/
|
||||
readonly mapImage: string
|
||||
/**
|
||||
* 地图场景Id
|
||||
*/
|
||||
@@ -967,6 +1012,38 @@ export class TbGRoleUpStar{
|
||||
|
||||
|
||||
|
||||
export class TbGRoleUpGrow{
|
||||
private _dataMap: Map<number, TB.TbGRoleUpGrow>
|
||||
private _dataList: TB.TbGRoleUpGrow[]
|
||||
constructor(_json_: any) {
|
||||
this._dataMap = new Map<number, TB.TbGRoleUpGrow>()
|
||||
this._dataList = []
|
||||
for(var _json2_ of _json_) {
|
||||
let _v: TB.TbGRoleUpGrow
|
||||
_v = new TB.TbGRoleUpGrow(_json2_)
|
||||
this._dataList.push(_v)
|
||||
this._dataMap.set(_v.id, _v)
|
||||
}
|
||||
}
|
||||
|
||||
getDataMap(): Map<number, TB.TbGRoleUpGrow> { return this._dataMap; }
|
||||
getDataList(): TB.TbGRoleUpGrow[] { return this._dataList; }
|
||||
|
||||
get(key: number): TB.TbGRoleUpGrow | undefined { return this._dataMap.get(key); }
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
for(let data of this._dataList)
|
||||
{
|
||||
data.resolve(tables)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export class TbSServerInfo{
|
||||
private _dataMap: Map<number, TB.TbSServerInfo>
|
||||
private _dataList: TB.TbSServerInfo[]
|
||||
@@ -1150,6 +1227,8 @@ export class Tables {
|
||||
get TbGRoleUpLevel(): TbGRoleUpLevel { return this._TbGRoleUpLevel;}
|
||||
private _TbGRoleUpStar: TbGRoleUpStar
|
||||
get TbGRoleUpStar(): TbGRoleUpStar { return this._TbGRoleUpStar;}
|
||||
private _TbGRoleUpGrow: TbGRoleUpGrow
|
||||
get TbGRoleUpGrow(): TbGRoleUpGrow { return this._TbGRoleUpGrow;}
|
||||
private _TbSServerInfo: TbSServerInfo
|
||||
get TbSServerInfo(): TbSServerInfo { return this._TbSServerInfo;}
|
||||
private _TbGAttribute: TbGAttribute
|
||||
@@ -1172,6 +1251,7 @@ export class Tables {
|
||||
this._TbGResource = new TbGResource(loader('tbgresource'))
|
||||
this._TbGRoleUpLevel = new TbGRoleUpLevel(loader('tbgroleuplevel'))
|
||||
this._TbGRoleUpStar = new TbGRoleUpStar(loader('tbgroleupstar'))
|
||||
this._TbGRoleUpGrow = new TbGRoleUpGrow(loader('tbgroleupgrow'))
|
||||
this._TbSServerInfo = new TbSServerInfo(loader('tbsserverinfo'))
|
||||
this._TbGAttribute = new TbGAttribute(loader('tbgattribute'))
|
||||
this._TbGRoleBaseAttribute = new TbGRoleBaseAttribute(loader('tbgrolebaseattribute'))
|
||||
@@ -1188,6 +1268,7 @@ export class Tables {
|
||||
this._TbGResource.resolve(this)
|
||||
this._TbGRoleUpLevel.resolve(this)
|
||||
this._TbGRoleUpStar.resolve(this)
|
||||
this._TbGRoleUpGrow.resolve(this)
|
||||
this._TbSServerInfo.resolve(this)
|
||||
this._TbGAttribute.resolve(this)
|
||||
this._TbGRoleBaseAttribute.resolve(this)
|
||||
|
@@ -9,5 +9,16 @@
|
||||
"map2OffsetY": 520,
|
||||
"map3OffsetY": 520,
|
||||
"scale": 1.5
|
||||
},
|
||||
{
|
||||
"id": 60002,
|
||||
"mapName": "魔法镇",
|
||||
"map1": "map/MAP4/MAP4_1/spriteFrame",
|
||||
"map2": "map/MAP4/MAP4_2/spriteFrame",
|
||||
"map3": "map/MAP4/MAP4_3/spriteFrame",
|
||||
"map1OffsetY": 80,
|
||||
"map2OffsetY": 520,
|
||||
"map3OffsetY": 520,
|
||||
"scale": 1.5
|
||||
}
|
||||
]
|
@@ -3,7 +3,7 @@
|
||||
"id": 1,
|
||||
"data": {
|
||||
"level": 1,
|
||||
"petLevel": 1,
|
||||
"petLevel": 0,
|
||||
"oddsId": 1
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "6baeb0a2-41ee-4611-b21b-bccecaf19df3",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -1,7 +1,8 @@
|
||||
[
|
||||
{
|
||||
"id": 120001,
|
||||
"name": "冒险岛",
|
||||
"name": "天空城",
|
||||
"mapImage": "ui/map/天空城_图片/spriteFrame",
|
||||
"mapId": 60001,
|
||||
"petIds": [
|
||||
10001,
|
||||
@@ -10,5 +11,17 @@
|
||||
],
|
||||
"sign": "",
|
||||
"introduce": "新手地图在这里可以遇到可爱的宠物哦~"
|
||||
},
|
||||
{
|
||||
"id": 120002,
|
||||
"name": "魔法镇",
|
||||
"mapImage": "ui/map/天空城_图片/spriteFrame",
|
||||
"mapId": 60002,
|
||||
"petIds": [
|
||||
10003,
|
||||
10004
|
||||
],
|
||||
"sign": "",
|
||||
"introduce": "魔法阵 这里有魔法精灵~"
|
||||
}
|
||||
]
|
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "50368b9b-31bf-44b2-ad98-b5faf101faa0",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"id": 0,
|
||||
"Blood": 1,
|
||||
"Attack": 1,
|
||||
"Defend": 1
|
||||
}
|
||||
]
|
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "044ec3bd-0504-4dcf-ac6c-ffe3d6ae31d7",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user