package org.xyzh.achievement.checker.impl;

import org.springframework.stereotype.Component;
import org.xyzh.achievement.checker.AbstractAchievementChecker;
import org.xyzh.common.core.enums.AchievementConditionType;
import org.xyzh.common.core.enums.AchievementEventType;

/**
 * @description 完成任务数量成就检测器
 * @filename TaskCompleteChecker.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-24
 */
@Component
public class TaskCompleteChecker extends AbstractAchievementChecker {

    @Override
    protected AchievementConditionType getSupportedConditionType() {
        return AchievementConditionType.TASK_COMPLETE_COUNT;
    }

    @Override
    protected AchievementEventType[] getSupportedEventTypes() {
        return new AchievementEventType[]{
            AchievementEventType.TASK_COMPLETED
        };
    }
}

