重置配置表

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

@@ -3,13 +3,11 @@ import GObject, { GTowards } from "../GObject";
import { JNFrameInfo } from "../../../../../extensions/ngame/assets/ngame/sync/frame/JNSyncFrame";
import { Vec2 } from "cc";
import { v3 } from "cc";
import { TableGRole } from "../../../../resources/config/ts/TableGRole";
import { TableGRoleSkill } from "../../../../resources/config/ts/TableGRoleSkill";
import { GSkill, GSkillBase, GSkillState } from "../../skill/GSkill";
import JNSkeleton from "../../../../../extensions/ngame/assets/ngame/sync/frame/game/spine/JNFrameSkeleton";
import { GFSMAnimBase } from "../fsm/GFSMAnimBase";
import GFSMBase from "../fsm/GFSMBase";
import { app } from "../../../App";
import { TB } from "../../../../resources/config/data/schema";
const { ccclass, property } = _decorator;
export enum GRoleAnimEvent{
@@ -23,7 +21,7 @@ export default abstract class GRoleBase<T> extends GObject<T>{
spine:JNSkeleton;
//角色
role:TableGRole;
role:TB.TbGRole;
//状态机
fsm:GFSMBase;
@@ -80,9 +78,9 @@ export default abstract class GRoleBase<T> extends GObject<T>{
}
//初始化
protected init(role:TableGRole){
protected init(role:TB.TbGRole){
if(this.spine)
this.spine.skeletonData = app.battleRes.skData[role.id];
this.spine.skeletonData = app.battleRes.roleSpine[role.id];
}
//创建一个状态机