2021-09-28 13:33:00 -04:00
// Copyright Epic Games, Inc. All Rights Reserved.
# pragma once
# include "Kismet/BlueprintFunctionLibrary.h"
2021-11-26 15:48:13 -05:00
# include "SmartObjectRuntime.h"
2021-09-28 13:33:00 -04:00
# include "SmartObjectBlueprintFunctionLibrary.generated.h"
2021-11-26 15:48:13 -05:00
struct FGameplayTagContainer ;
class UBlackboardComponent ;
2021-09-28 13:33:00 -04:00
class AAIController ;
UCLASS ( meta = ( ScriptName = " SmartObjectLibrary " ) )
class SMARTOBJECTSMODULE_API USmartObjectBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY ( )
public :
2021-11-26 15:48:13 -05:00
UFUNCTION ( BlueprintCallable , Category = " SmartObject " )
static FSmartObjectClaimHandle GetValueAsSOClaimHandle ( UBlackboardComponent * BlackboardComponent , const FName & KeyName ) ;
UFUNCTION ( BlueprintCallable , Category = " SmartObject " )
static void SetValueAsSOClaimHandle ( UBlackboardComponent * BlackboardComponent , const FName & KeyName , FSmartObjectClaimHandle Value ) ;
UFUNCTION ( BlueprintCallable , Category = " SmartObject " )
static bool IsValidSmartObjectClaimHandle ( const FSmartObjectClaimHandle Handle ) { return Handle . IsValid ( ) ; }
UFUNCTION ( BlueprintCallable , Category = " SmartObject " , meta = ( DisplayName = " UseSmartObject " ) )
2021-09-28 13:33:00 -04:00
static bool K2_UseSmartObject ( AActor * Avatar , AActor * SmartObject ) ;
2021-11-26 15:48:13 -05:00
UFUNCTION ( BlueprintCallable , Category = " SmartObject " , meta = ( DisplayName = " SetSmartObjectEnabled " ) )
2021-09-28 13:33:00 -04:00
static bool K2_SetSmartObjectEnabled ( AActor * SmartObject , const bool bEnabled ) ;
UE_DEPRECATED ( 5.0 , " K2_AddLooseGameplayTags has been deprecated and will be removed soon. Use UAbilitySystemBlueprintLibrary::AddLooseGameplayTags instead " )
2021-11-26 15:48:13 -05:00
UFUNCTION ( BlueprintCallable , Category = " SmartObject " , meta = ( DisplayName = " DEPRECATED_AddLooseGameplayTags " , DeprecatedFunction , DeprecationMessage = " Use AbilitySystemBlueprintLibrary::AddLooseGameplayTags instead " ) )
2021-09-28 13:33:00 -04:00
static bool K2_AddLooseGameplayTags ( AActor * Actor , const FGameplayTagContainer & GameplayTags ) ;
UE_DEPRECATED ( 5.0 , " K2_AddLooseGameplayTags has been deprecated and will be removed soon. Use UAbilitySystemBlueprintLibrary::RemoveLooseGameplayTags instead " )
2021-11-26 15:48:13 -05:00
UFUNCTION ( BlueprintCallable , Category = " SmartObject " , meta = ( DisplayName = " DEPRECATED_RemoveLooseGameplayTags " , DeprecatedFunction , DeprecationMessage = " Use AbilitySystemBlueprintLibrary::RemoveLooseGameplayTags instead " ) )
2021-09-28 13:33:00 -04:00
static bool K2_RemoveLooseGameplayTags ( AActor * Actor , const FGameplayTagContainer & GameplayTags ) ;
} ;