Core/Spells: Fixed gcc 14 build

(cherry picked from commit 0fb81435bc)
This commit is contained in:
Shauren
2024-05-23 22:32:15 +02:00
committed by Ovahlord
parent 3451ce7c7a
commit e231bd010e
4 changed files with 12 additions and 2 deletions

View File

@@ -2188,6 +2188,8 @@ void Spell::SearchTargets(SEARCHER& searcher, uint32 containerMask, WorldObject*
}
}
template TC_GAME_API void Spell::SearchTargets<Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck>>(Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck>& searcher, uint32 containerMask, WorldObject* referer, Position const* pos, float radius);
WorldObject* Spell::SearchNearbyTarget(SpellEffectInfo const& spellEffectInfo, float range, SpellTargetObjectTypes objectType, SpellTargetCheckTypes selectionType, ConditionContainer const* condList)
{
WorldObject* target = nullptr;

View File

@@ -71,6 +71,9 @@ enum WeaponAttackType : uint8;
namespace Trinity
{
enum class WorldObjectSpellAreaTargetSearchReason;
template <class Check>
struct WorldObjectListSearcher;
}
#define SPELL_CHANNEL_UPDATE_INTERVAL (1 * IN_MILLISECONDS)
@@ -1011,6 +1014,8 @@ namespace Trinity
TC_GAME_API void SelectRandomInjuredTargets(std::list<WorldObject*>& targets, size_t maxTargets, bool prioritizePlayers, Unit const* prioritizeGroupMembersOf = nullptr);
}
extern template void Spell::SearchTargets<Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck>>(Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck>& searcher, uint32 containerMask, WorldObject* referer, Position const* pos, float radius);
using SpellEffectHandlerFn = void(Spell::*)();
#endif

View File

@@ -68,13 +68,13 @@ namespace GameTime
}
template<>
TC_GAME_API SystemTimePoint GetTime<std::chrono::system_clock>()
SystemTimePoint GetTime<std::chrono::system_clock>()
{
return GetSystemTime();
}
template<>
TC_GAME_API TimePoint GetTime<std::chrono::steady_clock>()
TimePoint GetTime<std::chrono::steady_clock>()
{
return Now();
}

View File

@@ -54,6 +54,9 @@ namespace GameTime
TC_GAME_API WowTime const* GetWowTime();
void UpdateGameTimers();
template<> TC_GAME_API SystemTimePoint GetTime<std::chrono::system_clock>();
template<> TC_GAME_API TimePoint GetTime<std::chrono::steady_clock>();
}
#endif