[HOT FIX] MS build issues regarding folder / command lenght usage or rc.exe (#2038)

This commit is contained in:
bashermens
2026-01-19 22:45:28 +01:00
committed by GitHub
parent fd07e02a8a
commit 41c53365ae
1119 changed files with 27 additions and 27 deletions

View File

@@ -0,0 +1,74 @@
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license, you may redistribute it
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef _PLAYERBOT_PVPVALUES_H
#define _PLAYERBOT_PVPVALUES_H
#include "NamedObjectContext.h"
#include "SharedDefines.h"
#include "Value.h"
class PlayerbotAI;
class Unit;
class BgTypeValue : public ManualSetValue<uint32>
{
public:
BgTypeValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "bg type") {}
};
class ArenaTypeValue : public ManualSetValue<uint32>
{
public:
ArenaTypeValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "arena type") {}
};
class BgRoleValue : public ManualSetValue<uint32>
{
public:
BgRoleValue(PlayerbotAI* botAI) : ManualSetValue<uint32>(botAI, 0, "bg role") {}
};
class BgMastersValue : public SingleCalculatedValue<std::vector<CreatureData const*>>, public Qualified
{
public:
BgMastersValue(PlayerbotAI* botAI) : SingleCalculatedValue<std::vector<CreatureData const*>>(botAI, "bg masters") {}
std::vector<CreatureData const*> Calculate() override;
};
class BgMasterValue : public CDPairCalculatedValue, public Qualified
{
public:
BgMasterValue(PlayerbotAI* botAI) : CDPairCalculatedValue(botAI, "bg master", 60) {}
CreatureData const* Calculate() override;
CreatureData const* NearestBm(bool allowDead = true);
};
class RpgBgTypeValue : public CalculatedValue<BattlegroundTypeId>
{
public:
RpgBgTypeValue(PlayerbotAI* botAI) : CalculatedValue(botAI, "rpg bg type") {}
BattlegroundTypeId Calculate() override;
};
class FlagCarrierValue : public UnitCalculatedValue
{
public:
FlagCarrierValue(PlayerbotAI* botAI, bool sameTeam = false, bool ignoreRange = false)
: UnitCalculatedValue(botAI), sameTeam(sameTeam), ignoreRange(ignoreRange)
{
}
Unit* Calculate() override;
private:
bool sameTeam;
bool ignoreRange;
};
#endif