refactor: 移除未使用的代码并优化卡牌获取逻辑

- 删除 MissionCardComp 中未使用的接口定义和注释代码
- 移除 MissionComp 中未实现的英雄死亡、升级和复活相关事件处理
- 重构 CardSet 中的 getCardPoolByLv 和 getCardsByLv 方法,增加类型过滤和等级模式参数
- 清理 MissionComp 中的冗余代码和注释,简化局内数据初始化逻辑
This commit is contained in:
walkpan
2026-03-14 09:09:47 +08:00
parent c8c3dde2e4
commit dbe376033d
5 changed files with 827 additions and 1055 deletions

View File

@@ -12,10 +12,6 @@ import { CardType } from "../common/config/CardSet";
const { ccclass, property } = _decorator;
interface ICardEvent {
type?: CardType;
level?: number;
}
/** 视图层对象 */
@ccclass('MissionCardComp')
@@ -31,12 +27,10 @@ export class MissionCardComp extends CCComp {
card3:Node = null!
@property(Node)
card4:Node = null!
// card1_data: ICardInfo = null!
// card2_data: ICardInfo = null!
// card3_data: ICardInfo = null!
// card4_data: ICardInfo = null!
@property(Node)
cards_chou:Node = null!
@property(Node)
cards_up:Node = null!
private uiconsAtlas: SpriteAtlas | null = null;
@@ -64,9 +58,7 @@ export class MissionCardComp extends CCComp {
}
private resetCardStates() {
}
/**