Add Has Goal decorator to BT

This commit is contained in:
Wojtek Figat
2023-08-29 17:31:35 +02:00
parent 57ee884397
commit b6c8a08b58
5 changed files with 83 additions and 20 deletions

View File

@@ -19,9 +19,11 @@ bool AccessVariant(Variant& instance, const StringAnsiView& member, Variant& val
if (member.IsEmpty())
{
// Whole blackboard value
CHECK_RETURN(instance.Type == value.Type, false);
if (set)
{
CHECK_RETURN(instance.Type == value.Type, false);
instance = value;
}
else
value = instance;
return true;