From 8c597ae0088427591cd36ede03de94327f6f9732 Mon Sep 17 00:00:00 2001 From: panw Date: Fri, 31 Oct 2025 11:06:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(skill):=20=E6=8A=80=E8=83=BD=E5=88=9D?= =?UTF-8?q?=E6=AD=A5=E5=AE=8C=E6=88=90=EF=BC=8C=E4=B8=8B=E4=B8=80=E6=AD=A5?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BC=A4=E5=AE=B3=E7=B3=BB=E7=BB=9F=20?= =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8DSMoveData=E7=BB=84=E4=BB=B6=E5=B9=B6?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=84=E4=BB=B6=E6=B7=BB=E5=8A=A0=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=20=E5=B0=86SMoveData=E7=BB=84=E4=BB=B6=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E4=B8=BASMoveDataComp=E4=BB=A5=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E5=91=BD=E5=90=8D=E4=B8=80=E8=87=B4=E6=80=A7=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DSkill=E7=B1=BB=E4=B8=AD=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B9=E5=BC=8F=EF=BC=8C=E6=98=8E=E7=A1=AE?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=BB=84=E4=BB=B6=E7=B1=BB=E5=9E=8B=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/script/game/skill/SMoveComp.ts | 2 +- assets/script/game/skill/Skill.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/script/game/skill/SMoveComp.ts b/assets/script/game/skill/SMoveComp.ts index 40f4ebf0..4c05a9e0 100644 --- a/assets/script/game/skill/SMoveComp.ts +++ b/assets/script/game/skill/SMoveComp.ts @@ -7,7 +7,7 @@ import { BoxSet } from "../common/config/BoxSet"; * 技能移动数据组件 * 存储技能实体的移动相关数据 */ -@ecs.register('SMoveData') +@ecs.register('SMoveDataComp') export class SMoveDataComp extends ecs.Comp { /** 起始位置 */ startPos: Vec3 = null; diff --git a/assets/script/game/skill/Skill.ts b/assets/script/game/skill/Skill.ts index 4244e0c3..ccc302bc 100644 --- a/assets/script/game/skill/Skill.ts +++ b/assets/script/game/skill/Skill.ts @@ -30,8 +30,8 @@ export class Skill extends ecs.Entity { /** 实始添加的数据层组件 */ protected init() { - this.addComponents(); - this.addComponents(); + this.addComponents(SDataCom); + this.addComponents(SMoveDataComp); } load(startPos: Vec3, parent: Node, s_uuid: number, targetPos: Vec3, caster:HeroViewComp) {