package evanq.game.infrastructure.mint; import evanq.game.infrastructure.mint.commandexecutors.DispatchCommand; import evanq.game.net.AbstractPacket; import evanq.game.net.NetPacketType; /** * * 子类无需实现 <b>execute()</b> * * @author Evan cppmain@gmail.com * */ public abstract class AbstractDTO extends AbstractPacket { protected AbstractDTO(NetPacketType packetType) { super(packetType); } @Override public void execute() { //TODO 这里可以优化到协议号-> 方法(Method) //CommandExecutorRegistry.getInstance().action(this); DispatchCommand.getInstance().dispatch(this); } }