14 lines
322 B
C++
14 lines
322 B
C++
#include "State/DA_StateGatingTable.h"
|
|
|
|
bool UDA_StateGatingTable::IsActionGated(FGameplayTag ActionTag, FGameplayTag CurrentState) const
|
|
{
|
|
for (const FStateGatingRule& Rule : GatingRules)
|
|
{
|
|
if (Rule.ActionTag == ActionTag && Rule.BlockedByState == CurrentState)
|
|
{
|
|
return Rule.bIsBlocked;
|
|
}
|
|
}
|
|
return false;
|
|
}
|