mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 11:27:17 +00:00
Couple of lingering issues
This commit is contained in:
@@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <ranges>
|
|
||||||
|
|
||||||
#include "common/emu_versions.h"
|
#include "common/emu_versions.h"
|
||||||
#include "common/patches/client_version.h"
|
#include "common/patches/client_version.h"
|
||||||
#include "common/patches/IBuff.h"
|
#include "common/patches/IBuff.h"
|
||||||
@@ -28,6 +26,8 @@
|
|||||||
#include "zone/client.h"
|
#include "zone/client.h"
|
||||||
#include "zone/mob.h"
|
#include "zone/mob.h"
|
||||||
|
|
||||||
|
#include <ranges>
|
||||||
|
|
||||||
// store all _generic_ static functions for the different patches here
|
// store all _generic_ static functions for the different patches here
|
||||||
namespace ClientPatch {
|
namespace ClientPatch {
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ using SendPredicate = std::function<bool(Client*)>;
|
|||||||
using MutatePacket = std::function<void(std::unique_ptr<EQApplicationPacket>&, Client*)>;
|
using MutatePacket = std::function<void(std::unique_ptr<EQApplicationPacket>&, Client*)>;
|
||||||
|
|
||||||
template <typename Component>
|
template <typename Component>
|
||||||
static Component* GetClientComponent(const Client* client)
|
Component* GetClientComponent(const Client* client)
|
||||||
{
|
{
|
||||||
return GetComponent<Component>(client->GetClientVersion()).get();
|
return GetComponent<Component>(client->GetClientVersion()).get();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user