OLS/Source/ols/Public/Messages/OLSVerbMessageHelpers.h

31 lines
976 B
C
Raw Permalink Normal View History

2025-01-15 19:23:11 +00:00
// © 2024 Long Ly. All rights reserved. Any unauthorized use, reproduction, or distribution of this trademark is strictly prohibited and may result in legal action.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "OLSVerbMessageHelpers.generated.h"
/**
*
*/
UCLASS()
class OLS_API UOLSVerbMessageHelpers : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category = "OLS")
2025-01-15 19:23:11 +00:00
static class APlayerState* GetPlayerStateFromObject(UObject* object);
UFUNCTION(BlueprintCallable, Category = "OLS")
2025-01-15 19:23:11 +00:00
static class APlayerController* GetPlayerControllerFromObject(UObject* object);
UFUNCTION(BlueprintCallable, Category = "OLS")
2025-01-15 19:23:11 +00:00
static struct FGameplayCueParameters VerbMessageToCueParameters(const struct FOLSVerbMessage& message);
UFUNCTION(BlueprintCallable, Category = "OLS")
2025-01-15 19:23:11 +00:00
static struct FOLSVerbMessage CueParametersToVerbMessage(const FGameplayCueParameters& params);
};