chore: 移除未使用的技能相关组件和文件

清理技能模块中未使用的ECS组件、视图层文件及其元数据文件,包括Ready、EndView、ReadyCom、ReadyView和STagComps。同时简化SCastSystem的注释,删除过时的设计理念说明。
This commit is contained in:
walkpan
2026-03-16 20:56:04 +08:00
parent e91f0e37b7
commit 1b8c69a745
11 changed files with 0 additions and 222 deletions

View File

@@ -20,9 +20,6 @@ import { GameEvent } from "../common/config/GameEvent";
*
* 设计理念:
* - 负责"何时施法"的决策
* - 通过添加 CSRequestComp 触发施法
* - 可被玩家输入系统或AI系统复用
* - 支持多种AI策略
*/
@ecs.register('SCastSystem')
export class SCastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate {

View File

@@ -1,29 +0,0 @@
import { _decorator } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@ccclass('EndViewComp')
@ecs.register('EndView', false)
export class EndViewComp extends CCComp {
/** 视图层逻辑代码分离演示 */
start() {
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
// this.on(ModuleEvent.Cmd, this.onHandler, this);
}
/** 全局消息逻辑处理 */
// private onHandler(event: string, args: any) {
// switch (event) {
// case ModuleEvent.Cmd:
// break;
// }
// }
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {
this.node.destroy();
}
}

View File

@@ -1,9 +0,0 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "b6a93d92-4e42-4f75-8c60-8d616afe33a1",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -1,34 +0,0 @@
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
/** Read 模块 */
@ecs.register(`Read`)
export class Read extends ecs.Entity {
/** ---------- 数据层 ---------- */
// ReadModel!: ReadModelComp;
/** ---------- 业务层 ---------- */
// ReadBll!: ReadBllComp;
/** ---------- 视图层 ---------- */
// ReadView!: ReadViewComp;
/** 实始添加的数据层组件 */
protected init() {
// this.addComponents<ecs.Comp>();
}
/** 模块资源释放 */
destroy() {
// 注: 自定义释放逻辑,视图层实现 ecs.IComp 接口的 ecs 组件需要手动释放
super.destroy();
}
}
/** Read 模块业务逻辑系统组件,如无业务逻辑处理可删除此对象 */
export class EcsReadSystem extends ecs.System {
constructor() {
super();
// this.add(new ecs.ComblockSystem());
}
}

View File

@@ -1,9 +0,0 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "de61eb09-969a-4528-a822-edbb732dea01",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -1,29 +0,0 @@
import { _decorator } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@ccclass('ReadyComComp')
@ecs.register('ReadyCom', false)
export class ReadyComComp extends CCComp {
/** 视图层逻辑代码分离演示 */
start() {
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
// this.on(ModuleEvent.Cmd, this.onHandler, this);
}
/** 全局消息逻辑处理 */
// private onHandler(event: string, args: any) {
// switch (event) {
// case ModuleEvent.Cmd:
// break;
// }
// }
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {
this.node.destroy();
}
}

View File

@@ -1,9 +0,0 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "be4ced01-bd86-404f-b8f0-0e1ffcb8429c",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -1,29 +0,0 @@
import { _decorator } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@ccclass('ReadyViewComp')
@ecs.register('ReadyView', false)
export class ReadyViewComp extends CCComp {
/** 视图层逻辑代码分离演示 */
start() {
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
// this.on(ModuleEvent.Cmd, this.onHandler, this);
}
/** 全局消息逻辑处理 */
// private onHandler(event: string, args: any) {
// switch (event) {
// case ModuleEvent.Cmd:
// break;
// }
// }
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {
this.node.destroy();
}
}

View File

@@ -1,9 +0,0 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "6a8d3e5b-f363-4035-8bab-0b556b0d540e",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -1,53 +0,0 @@
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { Vec3 } from "cc";
/**
* ==================== 施法请求标记组件 ====================
*
* 用途:
* - 标记角色想要施放某个技能
* - 由外部如AI系统、玩家输入添加
* - 施法系统处理后自动移除
*/
@ecs.register('CSRequest')
export class CSRequestComp extends ecs.Comp {
/** 技能索引(在 HeroSkillsComp.skills 中的位置) */
s_uuid: number = 0;
/** 目标位置数组(由请求者提供) */
targets: Vec3[] = [];
reset() {
this.s_uuid = 0;
this.targets = [];
}
}
/**
* ==================== 技能命中标记组件 ====================
*
* 用途:
* - 标记技能已命中目标
* - 记录命中信息
* - 伤害系统处理后移除
*/
@ecs.register('SkillHit')
export class SkillHitComp extends ecs.Comp {
/** 技能ID */
s_uuid: number = 0;
/** 命中位置 */
hitPosition: Vec3 = new Vec3();
/** 伤害值 */
damage: number = 0;
/** 施法者实体ID */
casterId: number = 0;
reset() {
this.s_uuid = 0;
this.hitPosition.set(0, 0, 0);
this.damage = 0;
this.casterId = 0;
}
}

View File

@@ -1,9 +0,0 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "37d898a0-b376-4f18-8559-2acf6f4e7db7",
"files": [],
"subMetas": {},
"userData": {}
}