#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "PawnUtilities.generated.h"

class AActor;
class APawn;
class UObject;

UCLASS(Blueprintable)
class GAMEPLAYUTILITIES_API UPawnUtilities : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()

public:
	UFUNCTION(BlueprintPure)
	static APawn* GetOwningPawn(const AActor* origin);

	UFUNCTION(BlueprintPure)
	static APawn* GetLocallyObservedPawn(const UObject* worldContext);

public:
	UPawnUtilities();
};

FORCEINLINE uint32 GetTypeHash(const UPawnUtilities) { return 0; }
