This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-09 11:52:44 +08:00
parent a153d98cf1
commit b2a5a6c491
967 changed files with 2612 additions and 431 deletions

View File

@@ -14,7 +14,7 @@ import { JsonLoad, JsonUtil } from "../../extensions/ngame/assets/ngame/util/Jso
import NGameMessage from "../../extensions/ngame/assets/ngame/util/NGameMessage";
import GBattleModeManager from "./battle/GBattleModeManager";
import { GLayer, GUI, UIConfig } from "./ui/UIConfig";
import JLoaderSystem from "../../extensions/ngame/assets/ngame/system/JLoaderSystem";
import JLoaderBundle from "../../extensions/ngame/assets/ngame/system/JLoaderBundle";
import { sp } from "cc";
import { SpriteFrame } from "cc";
import Loading from "../../extensions/ngame/assets/ngame/util/Loading";
@@ -28,12 +28,12 @@ import AppAction from "./AppAction";
import { Asset } from "cc";
import { Component } from "cc";
let APIPath = `http://localhost:8080`
let WsPath = `ws://localhost:8080/websocket`
// let APIPath = `http://localhost:8080`
// let WsPath = `ws://localhost:8080/websocket`
// let APIPath = `http://192.168.1.23:8080`
// let WsPath = `ws://192.168.1.23:8080/websocket`
// let APIPath = `http://192.168.0.119:8080`
// let WsPath = `ws://192.168.0.119:8080/websocket`
let APIPath = `http://192.168.0.119:8080`
let WsPath = `ws://192.168.0.119:8080/websocket`
// let APIPath = `https://api.pet.jisol.cn`
// let WsPath = `wss://api.pet.jisol.cn/websocket`
@@ -141,7 +141,7 @@ export class JNGConfig extends SystemBase{
}
//资源初始器
export class JLoaderBattle extends JLoaderSystem{
export class JLoaderBattle extends JLoaderBundle{
static loading = "JLoaderBattle";
static loadingInit = "JLoaderBattle_Init";
@@ -272,7 +272,8 @@ export const app = {
battle : GBattleModeManager.getIns(), //战斗
config : new JNGConfig(), //配置文件
battleRes : new JLoaderBattle("battle"), //battle包
tbRes : new JLoaderSystem("tbresource"), //tbresource包
tbRes : new JLoaderBundle("tbresource"), //tbresource包
res : new JLoaderBundle("resources"), //resources包
data : new AppData(), //游戏基础信息
action : new AppAction(), //游戏行为
loading : new Loading({