and again
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include <sp/protocol/ConcreteMessage.h>
|
||||
#include <sp/protocol/MessageDispatcher.h>
|
||||
#include <sp/protocol/MessageFactory.h>
|
||||
#include <sp/protocol/MessageHandler.h>
|
||||
#include <sp/common/GenericHandler.h>
|
||||
#include <td/Types.h>
|
||||
#include <td/common/NonCopyable.h>
|
||||
#include <td/protocol/command/CommandData.h>
|
||||
@@ -33,7 +33,7 @@ class CommandHandler;
|
||||
using CommandBase = sp::MessageBase<CommandID, CommandHandler>;
|
||||
|
||||
template <typename TData, CommandID ID>
|
||||
using CommandMessage = sp::ConcreteMessage<TData, CommandID, ID, CommandHandler>;
|
||||
using CommandMessage = sp::ConcreteMessage<TData, CommandBase, ID>;
|
||||
|
||||
|
||||
namespace commands {
|
||||
@@ -51,7 +51,7 @@ using UseItemCommand = CommandMessage<cdata::UseItem, CommandID::UseItem>;
|
||||
using AllCommands = std::tuple<commands::EndCommand, commands::PlaceTowerCommand, commands::PlayerJoinCommand,
|
||||
commands::SpawnTroopCommand, commands::TeamChangeCommand, commands::UpgradeTowerCommand, commands::UseItemCommand>;
|
||||
|
||||
class CommandHandler : public sp::MessageHandler<AllCommands> {};
|
||||
class CommandHandler : public sp::GenericHandler<AllCommands> {};
|
||||
|
||||
using CommandDispatcher = sp::MessageDispatcher<CommandBase>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user