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 ResourceCollectChecker.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-24
 */
@Component
public class ResourceCollectChecker extends AbstractAchievementChecker {

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

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

