#pragma once #include #include #include #include "dCommonVars.h" #include "Preconditions.h" class Entity; namespace ServerPreconditions { extern std::unordered_map>> m_Preconditions; extern std::unordered_map m_SoloActors; extern std::unordered_map> m_ExcludeForPlayer; void LoadPreconditions(std::string file); bool CheckPreconditions(Entity* target, Entity* entity); bool IsSoloActor(LWOOBJID actor); bool IsActingFor(LWOOBJID actor, LWOOBJID target); void AddSoloActor(LWOOBJID actor, LWOOBJID target); void RemoveSoloActor(LWOOBJID actor); void AddExcludeFor(LWOOBJID player, LWOOBJID target); void RemoveExcludeFor(LWOOBJID player, LWOOBJID target); bool IsExcludedFor(LWOOBJID player, LWOOBJID target); }