提交配置表

This commit is contained in:
PC-20230316NUNE\Administrator
2023-11-21 18:52:01 +08:00
parent 074cfbd5bd
commit 5ab90ea221
525 changed files with 164826 additions and 12 deletions

View File

@@ -342,6 +342,90 @@ export class TbGResource {
}
export namespace TB {
export class TbGRoleCUp {
constructor(_json_: any) {
if (_json_.grade === undefined) { throw new Error() }
this.grade = _json_.grade
if (_json_.materials === undefined) { throw new Error() }
{ this.materials = []; for(let _ele of _json_.materials) { let _e; _e = new TbGEntity.Resource(_ele); this.materials.push(_e);}}
}
/**
* 宠物等级
*/
readonly grade: number
/**
* 消耗的材料
*/
readonly materials: TbGEntity.Resource[]
resolve(tables:Tables)
{
}
}
}
export namespace TbGEntity {
/**
* 资源信息
*/
export class Resource {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.value === undefined) { throw new Error() }
this.value = _json_.value
}
/**
* 资源Id
*/
readonly id: number
/**
* 资源数量
*/
readonly value: number
resolve(tables:Tables)
{
}
}
}
export namespace TB {
export class TbGRoleCStar {
constructor(_json_: any) {
if (_json_.grade === undefined) { throw new Error() }
this.grade = _json_.grade
if (_json_.merge === undefined) { throw new Error() }
this.merge = _json_.merge
}
/**
* 宠物星级
*/
readonly grade: number
/**
* 合成数量
*/
readonly merge: number
resolve(tables:Tables)
{
}
}
}
export class TbGGlobal{
@@ -600,6 +684,70 @@ export class TbGResource{
export class TbGRoleCUp{
private _dataMap: Map<number, TB.TbGRoleCUp>
private _dataList: TB.TbGRoleCUp[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGRoleCUp>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGRoleCUp
_v = new TB.TbGRoleCUp(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.grade, _v)
}
}
getDataMap(): Map<number, TB.TbGRoleCUp> { return this._dataMap; }
getDataList(): TB.TbGRoleCUp[] { return this._dataList; }
get(key: number): TB.TbGRoleCUp | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbGRoleCStar{
private _dataMap: Map<number, TB.TbGRoleCStar>
private _dataList: TB.TbGRoleCStar[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGRoleCStar>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGRoleCStar
_v = new TB.TbGRoleCStar(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.grade, _v)
}
}
getDataMap(): Map<number, TB.TbGRoleCStar> { return this._dataMap; }
getDataList(): TB.TbGRoleCStar[] { return this._dataList; }
get(key: number): TB.TbGRoleCStar | 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 {
@@ -619,6 +767,10 @@ export class Tables {
get TbGOnHookGlobal(): TbGOnHookGlobal { return this._TbGOnHookGlobal;}
private _TbGResource: TbGResource
get TbGResource(): TbGResource { return this._TbGResource;}
private _TbGRoleCUp: TbGRoleCUp
get TbGRoleCUp(): TbGRoleCUp { return this._TbGRoleCUp;}
private _TbGRoleCStar: TbGRoleCStar
get TbGRoleCStar(): TbGRoleCStar { return this._TbGRoleCStar;}
constructor(loader: JsonLoader) {
this._TbGGlobal = new TbGGlobal(loader('tbgglobal'))
@@ -629,6 +781,8 @@ export class Tables {
this._TbGMap = new TbGMap(loader('tbgmap'))
this._TbGOnHookGlobal = new TbGOnHookGlobal(loader('tbgonhookglobal'))
this._TbGResource = new TbGResource(loader('tbgresource'))
this._TbGRoleCUp = new TbGRoleCUp(loader('tbgrolecup'))
this._TbGRoleCStar = new TbGRoleCStar(loader('tbgrolecstar'))
this._TbGGlobal.resolve(this)
this._TbGRole.resolve(this)
@@ -638,5 +792,7 @@ export class Tables {
this._TbGMap.resolve(this)
this._TbGOnHookGlobal.resolve(this)
this._TbGResource.resolve(this)
this._TbGRoleCUp.resolve(this)
this._TbGRoleCStar.resolve(this)
}
}

View File

@@ -0,0 +1,42 @@
[
{
"grade": 1,
"merge": 1
},
{
"grade": 2,
"merge": 2
},
{
"grade": 3,
"merge": 4
},
{
"grade": 4,
"merge": 8
},
{
"grade": 5,
"merge": 16
},
{
"grade": 6,
"merge": 32
},
{
"grade": 7,
"merge": 64
},
{
"grade": 8,
"merge": 128
},
{
"grade": 9,
"merge": 256
},
{
"grade": 10,
"merge": 512
}
]

View File

@@ -0,0 +1,11 @@
{
"ver": "2.0.1",
"importer": "json",
"imported": true,
"uuid": "580aaa0b-8b26-4bc6-9abe-6984e9980679",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,902 @@
[
{
"grade": 1,
"materials": [
{
"id": 90001,
"value": 100
}
]
},
{
"grade": 2,
"materials": [
{
"id": 90001,
"value": 400
}
]
},
{
"grade": 3,
"materials": [
{
"id": 90001,
"value": 900
}
]
},
{
"grade": 4,
"materials": [
{
"id": 90001,
"value": 1600
}
]
},
{
"grade": 5,
"materials": [
{
"id": 90001,
"value": 2500
}
]
},
{
"grade": 6,
"materials": [
{
"id": 90001,
"value": 3600
}
]
},
{
"grade": 7,
"materials": [
{
"id": 90001,
"value": 4900
}
]
},
{
"grade": 8,
"materials": [
{
"id": 90001,
"value": 6400
}
]
},
{
"grade": 9,
"materials": [
{
"id": 90001,
"value": 8100
}
]
},
{
"grade": 10,
"materials": [
{
"id": 90001,
"value": 10000
}
]
},
{
"grade": 11,
"materials": [
{
"id": 90001,
"value": 12100
}
]
},
{
"grade": 12,
"materials": [
{
"id": 90001,
"value": 14400
}
]
},
{
"grade": 13,
"materials": [
{
"id": 90001,
"value": 16900
}
]
},
{
"grade": 14,
"materials": [
{
"id": 90001,
"value": 19600
}
]
},
{
"grade": 15,
"materials": [
{
"id": 90001,
"value": 22500
}
]
},
{
"grade": 16,
"materials": [
{
"id": 90001,
"value": 25600
}
]
},
{
"grade": 17,
"materials": [
{
"id": 90001,
"value": 28900
}
]
},
{
"grade": 18,
"materials": [
{
"id": 90001,
"value": 32400
}
]
},
{
"grade": 19,
"materials": [
{
"id": 90001,
"value": 36100
}
]
},
{
"grade": 20,
"materials": [
{
"id": 90001,
"value": 40000
}
]
},
{
"grade": 21,
"materials": [
{
"id": 90001,
"value": 44100
}
]
},
{
"grade": 22,
"materials": [
{
"id": 90001,
"value": 48400
}
]
},
{
"grade": 23,
"materials": [
{
"id": 90001,
"value": 52900
}
]
},
{
"grade": 24,
"materials": [
{
"id": 90001,
"value": 57600
}
]
},
{
"grade": 25,
"materials": [
{
"id": 90001,
"value": 62500
}
]
},
{
"grade": 26,
"materials": [
{
"id": 90001,
"value": 67600
}
]
},
{
"grade": 27,
"materials": [
{
"id": 90001,
"value": 72900
}
]
},
{
"grade": 28,
"materials": [
{
"id": 90001,
"value": 78400
}
]
},
{
"grade": 29,
"materials": [
{
"id": 90001,
"value": 84100
}
]
},
{
"grade": 30,
"materials": [
{
"id": 90001,
"value": 90000
}
]
},
{
"grade": 31,
"materials": [
{
"id": 90001,
"value": 96100
}
]
},
{
"grade": 32,
"materials": [
{
"id": 90001,
"value": 102400
}
]
},
{
"grade": 33,
"materials": [
{
"id": 90001,
"value": 108900
}
]
},
{
"grade": 34,
"materials": [
{
"id": 90001,
"value": 115600
}
]
},
{
"grade": 35,
"materials": [
{
"id": 90001,
"value": 122500
}
]
},
{
"grade": 36,
"materials": [
{
"id": 90001,
"value": 129600
}
]
},
{
"grade": 37,
"materials": [
{
"id": 90001,
"value": 136900
}
]
},
{
"grade": 38,
"materials": [
{
"id": 90001,
"value": 144400
}
]
},
{
"grade": 39,
"materials": [
{
"id": 90001,
"value": 152100
}
]
},
{
"grade": 40,
"materials": [
{
"id": 90001,
"value": 160000
}
]
},
{
"grade": 41,
"materials": [
{
"id": 90001,
"value": 168100
}
]
},
{
"grade": 42,
"materials": [
{
"id": 90001,
"value": 176400
}
]
},
{
"grade": 43,
"materials": [
{
"id": 90001,
"value": 184900
}
]
},
{
"grade": 44,
"materials": [
{
"id": 90001,
"value": 193600
}
]
},
{
"grade": 45,
"materials": [
{
"id": 90001,
"value": 202500
}
]
},
{
"grade": 46,
"materials": [
{
"id": 90001,
"value": 211600
}
]
},
{
"grade": 47,
"materials": [
{
"id": 90001,
"value": 220900
}
]
},
{
"grade": 48,
"materials": [
{
"id": 90001,
"value": 230400
}
]
},
{
"grade": 49,
"materials": [
{
"id": 90001,
"value": 240100
}
]
},
{
"grade": 50,
"materials": [
{
"id": 90001,
"value": 250000
}
]
},
{
"grade": 51,
"materials": [
{
"id": 90001,
"value": 260100
}
]
},
{
"grade": 52,
"materials": [
{
"id": 90001,
"value": 270400
}
]
},
{
"grade": 53,
"materials": [
{
"id": 90001,
"value": 280900
}
]
},
{
"grade": 54,
"materials": [
{
"id": 90001,
"value": 291600
}
]
},
{
"grade": 55,
"materials": [
{
"id": 90001,
"value": 302500
}
]
},
{
"grade": 56,
"materials": [
{
"id": 90001,
"value": 313600
}
]
},
{
"grade": 57,
"materials": [
{
"id": 90001,
"value": 324900
}
]
},
{
"grade": 58,
"materials": [
{
"id": 90001,
"value": 336400
}
]
},
{
"grade": 59,
"materials": [
{
"id": 90001,
"value": 348100
}
]
},
{
"grade": 60,
"materials": [
{
"id": 90001,
"value": 360000
}
]
},
{
"grade": 61,
"materials": [
{
"id": 90001,
"value": 372100
}
]
},
{
"grade": 62,
"materials": [
{
"id": 90001,
"value": 384400
}
]
},
{
"grade": 63,
"materials": [
{
"id": 90001,
"value": 396900
}
]
},
{
"grade": 64,
"materials": [
{
"id": 90001,
"value": 409600
}
]
},
{
"grade": 65,
"materials": [
{
"id": 90001,
"value": 422500
}
]
},
{
"grade": 66,
"materials": [
{
"id": 90001,
"value": 435600
}
]
},
{
"grade": 67,
"materials": [
{
"id": 90001,
"value": 448900
}
]
},
{
"grade": 68,
"materials": [
{
"id": 90001,
"value": 462400
}
]
},
{
"grade": 69,
"materials": [
{
"id": 90001,
"value": 476100
}
]
},
{
"grade": 70,
"materials": [
{
"id": 90001,
"value": 490000
}
]
},
{
"grade": 71,
"materials": [
{
"id": 90001,
"value": 504100
}
]
},
{
"grade": 72,
"materials": [
{
"id": 90001,
"value": 518400
}
]
},
{
"grade": 73,
"materials": [
{
"id": 90001,
"value": 532900
}
]
},
{
"grade": 74,
"materials": [
{
"id": 90001,
"value": 547600
}
]
},
{
"grade": 75,
"materials": [
{
"id": 90001,
"value": 562500
}
]
},
{
"grade": 76,
"materials": [
{
"id": 90001,
"value": 577600
}
]
},
{
"grade": 77,
"materials": [
{
"id": 90001,
"value": 592900
}
]
},
{
"grade": 78,
"materials": [
{
"id": 90001,
"value": 608400
}
]
},
{
"grade": 79,
"materials": [
{
"id": 90001,
"value": 624100
}
]
},
{
"grade": 80,
"materials": [
{
"id": 90001,
"value": 640000
}
]
},
{
"grade": 81,
"materials": [
{
"id": 90001,
"value": 656100
}
]
},
{
"grade": 82,
"materials": [
{
"id": 90001,
"value": 672400
}
]
},
{
"grade": 83,
"materials": [
{
"id": 90001,
"value": 688900
}
]
},
{
"grade": 84,
"materials": [
{
"id": 90001,
"value": 705600
}
]
},
{
"grade": 85,
"materials": [
{
"id": 90001,
"value": 722500
}
]
},
{
"grade": 86,
"materials": [
{
"id": 90001,
"value": 739600
}
]
},
{
"grade": 87,
"materials": [
{
"id": 90001,
"value": 756900
}
]
},
{
"grade": 88,
"materials": [
{
"id": 90001,
"value": 774400
}
]
},
{
"grade": 89,
"materials": [
{
"id": 90001,
"value": 792100
}
]
},
{
"grade": 90,
"materials": [
{
"id": 90001,
"value": 810000
}
]
},
{
"grade": 91,
"materials": [
{
"id": 90001,
"value": 828100
}
]
},
{
"grade": 92,
"materials": [
{
"id": 90001,
"value": 846400
}
]
},
{
"grade": 93,
"materials": [
{
"id": 90001,
"value": 864900
}
]
},
{
"grade": 94,
"materials": [
{
"id": 90001,
"value": 883600
}
]
},
{
"grade": 95,
"materials": [
{
"id": 90001,
"value": 902500
}
]
},
{
"grade": 96,
"materials": [
{
"id": 90001,
"value": 921600
}
]
},
{
"grade": 97,
"materials": [
{
"id": 90001,
"value": 940900
}
]
},
{
"grade": 98,
"materials": [
{
"id": 90001,
"value": 960400
}
]
},
{
"grade": 99,
"materials": [
{
"id": 90001,
"value": 980100
}
]
},
{
"grade": 100,
"materials": [
{
"id": 90001,
"value": 1000000
}
]
}
]

View File

@@ -0,0 +1,11 @@
{
"ver": "2.0.1",
"importer": "json",
"imported": true,
"uuid": "dfe67d28-0f19-440b-ad19-7c1f70b3528b",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

View File

@@ -5,8 +5,8 @@
"skillController": "GSkillCrazySquirrel",
"skillArgs": [
"5",
"250",
"250"
"300",
"300"
],
"skillText": "疯狂松鼠的技能 丢出巨大炸弹 轰炸全部玩家"
},

View File

@@ -40,7 +40,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -1280,
"y": 0,
"z": 0
},
"_lrot": {
@@ -2973,8 +2973,8 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 1280,
"_bottom": -1280,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,

View File

@@ -26,10 +26,10 @@ import { JAPI, JAPIConfig } from "../../extensions/ngame/assets/ngame/util/JAPI"
import { AppData } from "./AppData";
import AppAction from "./AppAction";
let APIPath = `http://localhost:8080`
let WsPath = `ws://localhost:8080/websocket`
// let APIPath = `http://192.168.0.123:8080`
// let WsPath = `ws://192.168.0.123:8080/websocket`
// let APIPath = `http://localhost:8080`
// let WsPath = `ws://localhost:8080/websocket`
let APIPath = `http://192.168.0.174:8080`
let WsPath = `ws://192.168.0.174:8080/websocket`
// let APIPath = `https://api.pet.jisol.cn`
// let WsPath = `wss://api.pet.jisol.cn/websocket`

View File

@@ -5,6 +5,7 @@ import { GUI } from "../UIConfig";
import NoviceManager from "../../manager/NoviceManager";
import { JNGLayerBase } from "../../components/JNComponent";
import { app } from "../../App";
import { lerp } from "cc";
const { ccclass, property } = _decorator;
@ccclass('LoadingView')
@@ -22,7 +23,7 @@ export default class LoadingView extends JNGLayerBase {
update(dt:number){
if(app.loading.getCurrentInfo())
this.label.string = app.loading.getCurrentInfo().title;
this.progress.progress = app.loading.progress();
this.progress.progress = lerp(this.progress.progress,app.loading.progress(),dt);
if(!this.isOk && app.loading.isAllSuccess()){
this.isOk = true;
this.onSuccess();