refactor tile serialize
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <td/Types.h>
|
||||
#include <td/common/NonCopyable.h>
|
||||
#include <td/protocol/command/CommandData.h>
|
||||
#include <sp/io/SerializableMessage.h>
|
||||
|
||||
namespace td {
|
||||
namespace protocol {
|
||||
@@ -32,8 +33,6 @@ class CommandHandler;
|
||||
|
||||
using CommandBase = sp::MessageBase<CommandID, CommandHandler>;
|
||||
|
||||
using CommandPtr = std::unique_ptr<CommandBase>;
|
||||
|
||||
template <typename TData, CommandID ID>
|
||||
using CommandMessage = sp::ConcreteMessage<TData, CommandBase, ID>;
|
||||
|
||||
@@ -61,5 +60,7 @@ using CommandFactory = sp::MessageFactory<CommandBase, AllCommands>;
|
||||
|
||||
using LockStep = std::vector<std::shared_ptr<CommandBase>>;
|
||||
|
||||
using CommandPtr = std::unique_ptr<sp::SerializableMessage<CommandFactory>>;
|
||||
|
||||
} // namespace protocol
|
||||
} // namespace td
|
||||
|
||||
Reference in New Issue
Block a user