重置配置表

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-06 02:25:02 +08:00
parent e8f8cb3ce9
commit e24dded990
154 changed files with 1214 additions and 26044 deletions

View File

@@ -1,5 +1,4 @@
import { Vec2 } from "cc";
import { TableGRole } from "../../../resources/config/ts/TableGRole";
import GBaseMode from "../GBaseMode";
import { GRoleUtil } from "../entity/GRole";
import { GTactical } from "../entity/GTactical";
@@ -12,11 +11,11 @@ import { JNFrameInfo } from "../../../../extensions/ngame/assets/ngame/sync/fram
import { GMapLoop } from "../base/common/map/GMapLoop";
import { Node } from "cc";
import JNFrameTime from "../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
import { TableGMap } from "../../../resources/config/ts/TableGMap";
import { app } from "../../App";
import { TD, app } from "../../App";
import { v3 } from "cc";
import { v2 } from "cc";
import GFSMOnHookMode from "./OnHook/GFSMOnHookMode";
import { TB } from "../../../resources/config/data/schema";
const { ccclass, property } = _decorator;
//挂机模式状态
@@ -37,7 +36,7 @@ export interface GOnHookInfo{
//阵法
tactical: GTactical;
//宠物列表
roles: TableGRole[];
roles: TB.TbGRole[];
}
/**
@@ -80,7 +79,7 @@ export default class GOnHookMode extends GBaseMode<{}>{
enemyRoles: GRoleDefault[] = [];
//地图信息
mapInfo:TableGMap;
mapInfo:TB.TbGMap;
//每一波怪的距离
everyX:number = 600;
@@ -113,7 +112,7 @@ export default class GOnHookMode extends GBaseMode<{}>{
this.fsm = new GFSMOnHookMode(this);
//初始化地图
this.mapInfo = TableGMap.getConfig(60001);
this.mapInfo = TD.TbGMap.get(60001);
this.map1.init(app.battleRes.maps[60001][0],1);
this.map2.init(app.battleRes.maps[60001][1],1);
this.map3.init(app.battleRes.maps[60001][2],1,app.battleRes.maps[60001][1].width,app.battleRes.maps[60001][1].height);
@@ -169,7 +168,7 @@ export default class GOnHookMode extends GBaseMode<{}>{
}
//生成宠物
onGenRole(type: GOnHookModePlayerEnum,index:number,info:TableGRole) {
onGenRole(type: GOnHookModePlayerEnum,index:number,info:TB.TbGRole) {
let tactical = this.getInfo(type).tactical;
let pos:Vec2 = this.getInfo(type).tactical.getPosition(index);

View File

@@ -5,9 +5,9 @@ import { Prefab } from "cc";
import { instantiate } from "cc";
import { Vec2 } from "cc";
import { GRoleUtil } from "../entity/GRole";
import { TableGRole } from "../../../resources/config/ts/TableGRole";
import GRoleDefault from "../base/role/GRoleDefault";
import { v3 } from "cc";
import { TB } from "../../../resources/config/data/schema";
const { ccclass, property } = _decorator;
//PVP 角色
@@ -21,7 +21,7 @@ export interface GPVPModePlayerInfo{
//阵法
tactical: GTactical;
//宠物列表
roles: TableGRole[];
roles: TB.TbGRole[];
}
/**
@@ -79,7 +79,7 @@ export default class GPVPMode extends GBaseMode<{}>{
}
//生成角色
onGenRole(type: GPVPModePlayerEnum,index:number,info:TableGRole) {
onGenRole(type: GPVPModePlayerEnum,index:number,info:TB.TbGRole) {
let tactical = this.getInfo(type).tactical;
let pos:Vec2 = this.getInfo(type).tactical.getPosition(index);