feat: Implement core gameplay systems and data assets for health, stamina, stress, movement, hit reactions, and shield defense
This commit is contained in:
13
Source/Framework/Private/State/DA_StateGatingTable.cpp
Normal file
13
Source/Framework/Private/State/DA_StateGatingTable.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user