mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
@@ -45,7 +45,7 @@ namespace Battlenet
|
||||
class WorldserverService : public T
|
||||
{
|
||||
public:
|
||||
WorldserverService(WorldSession* session) : T(false), _session(session) { }
|
||||
WorldserverService(WorldSession* session) : T(true), _session(session) { }
|
||||
|
||||
protected:
|
||||
void SendRequest(uint32 serviceHash, uint32 methodId, google::protobuf::Message const* request, std::function<void(MessageBuffer)> callback) override { _session->SendBattlenetRequest(serviceHash, methodId, request, std::move(callback)); }
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace Battlenet
|
||||
template<class Service>
|
||||
void AddService()
|
||||
{
|
||||
_dispatchers[Service::NameHash::value] = &WorldserverServiceDispatcher::Dispatch<Service>;
|
||||
_dispatchers[Service::OriginalHash::value] = &WorldserverServiceDispatcher::Dispatch<Service>;
|
||||
}
|
||||
|
||||
template<class Service>
|
||||
|
||||
Reference in New Issue
Block a user