11 #include <boost/functional/hash.hpp> 13 #include <unordered_map> 26 boost::hash_combine(seed, commandHandlerKey.
GetPacketId());
27 boost::hash_combine(seed, commandHandlerKey.
GetVersion());
37 void RegisterFunctor(
CommandHandlerFunctor* functor, uint32_t familyId, uint32_t packetId, uint32_t version);
44 std::unordered_map<CommandHandlerKey, CommandHandlerFunctor*, CommandHandlerHash> registry;
uint32_t GetVersion() const
std::size_t operator()(const CommandHandlerKey &commandHandlerKey) const
uint32_t GetPacketId() const