package com.huangzj.cross.cmd;

import com.huangzj.base.cmd.CommandSource;
import com.huangzj.base.spring.SpringGameCommandRegistry;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

/**
 * 跨服进程只认 {@link CommandSource#CROSS_TCP} 的命令，别的来源不会进这张表。
 */
@Component
public class CrossGameCommandRegistry extends SpringGameCommandRegistry {

    /** 启动时扫 Bean，只收集带 {@code @Cmd(source=CROSS_TCP)} 的实现。 */
    public CrossGameCommandRegistry(ApplicationContext applicationContext) {
        super(applicationContext, CommandSource.CROSS_TCP);
    }
}
