diff --git a/assets/script/game/hero/SCastSystem.ts b/assets/script/game/hero/SCastSystem.ts index bff3d180..1c36fb94 100644 --- a/assets/script/game/hero/SCastSystem.ts +++ b/assets/script/game/hero/SCastSystem.ts @@ -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 { diff --git a/assets/script/game/skill/EndView.ts b/assets/script/game/skill/EndView.ts deleted file mode 100644 index b5592f46..00000000 --- a/assets/script/game/skill/EndView.ts +++ /dev/null @@ -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(); - } -} \ No newline at end of file diff --git a/assets/script/game/skill/EndView.ts.meta b/assets/script/game/skill/EndView.ts.meta deleted file mode 100644 index bc4dee4a..00000000 --- a/assets/script/game/skill/EndView.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "b6a93d92-4e42-4f75-8c60-8d616afe33a1", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/skill/Ready.ts b/assets/script/game/skill/Ready.ts deleted file mode 100644 index 6c4d32fc..00000000 --- a/assets/script/game/skill/Ready.ts +++ /dev/null @@ -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(); - } - - /** 模块资源释放 */ - destroy() { - // 注: 自定义释放逻辑,视图层实现 ecs.IComp 接口的 ecs 组件需要手动释放 - super.destroy(); - } -} - -/** Read 模块业务逻辑系统组件,如无业务逻辑处理可删除此对象 */ -export class EcsReadSystem extends ecs.System { - constructor() { - super(); - - // this.add(new ecs.ComblockSystem()); - } -} diff --git a/assets/script/game/skill/Ready.ts.meta b/assets/script/game/skill/Ready.ts.meta deleted file mode 100644 index 44620267..00000000 --- a/assets/script/game/skill/Ready.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "de61eb09-969a-4528-a822-edbb732dea01", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/skill/ReadyCom.ts b/assets/script/game/skill/ReadyCom.ts deleted file mode 100644 index f493dcae..00000000 --- a/assets/script/game/skill/ReadyCom.ts +++ /dev/null @@ -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(); - } -} \ No newline at end of file diff --git a/assets/script/game/skill/ReadyCom.ts.meta b/assets/script/game/skill/ReadyCom.ts.meta deleted file mode 100644 index bd434150..00000000 --- a/assets/script/game/skill/ReadyCom.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "be4ced01-bd86-404f-b8f0-0e1ffcb8429c", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/skill/ReadyView.ts b/assets/script/game/skill/ReadyView.ts deleted file mode 100644 index b9a670ed..00000000 --- a/assets/script/game/skill/ReadyView.ts +++ /dev/null @@ -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(); - } -} \ No newline at end of file diff --git a/assets/script/game/skill/ReadyView.ts.meta b/assets/script/game/skill/ReadyView.ts.meta deleted file mode 100644 index 1fab4551..00000000 --- a/assets/script/game/skill/ReadyView.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "6a8d3e5b-f363-4035-8bab-0b556b0d540e", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/skill/STagComps.ts b/assets/script/game/skill/STagComps.ts deleted file mode 100644 index 1dc78699..00000000 --- a/assets/script/game/skill/STagComps.ts +++ /dev/null @@ -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; - } -} diff --git a/assets/script/game/skill/STagComps.ts.meta b/assets/script/game/skill/STagComps.ts.meta deleted file mode 100644 index e55354a8..00000000 --- a/assets/script/game/skill/STagComps.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "37d898a0-b376-4f18-8559-2acf6f4e7db7", - "files": [], - "subMetas": {}, - "userData": {} -}