|
|
|
|
| #pragma once
|
|
|
| #include "Kismet/BlueprintFunctionLibrary.h"
|
|
|
| #include "LyraTeamStatics.generated.h"
|
|
|
| class ULyraTeamDisplayAsset;
|
| class UObject;
|
| class UTexture;
|
| struct FFrame;
|
|
|
|
|
| UCLASS()
|
| class ULyraTeamStatics : public UBlueprintFunctionLibrary
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
|
|
|
|
| UFUNCTION(BlueprintCallable, Category=Teams, meta=(Keywords="GetTeamFromObject", DefaultToSelf="Agent", AdvancedDisplay="bLogIfNotSet"))
|
| static void FindTeamFromObject(const UObject* Agent, bool& bIsPartOfTeam, int32& TeamId, ULyraTeamDisplayAsset*& DisplayAsset, bool bLogIfNotSet = false);
|
|
|
| UFUNCTION(BlueprintCallable, Category=Teams, meta=(WorldContext="WorldContextObject"))
|
| static ULyraTeamDisplayAsset* GetTeamDisplayAsset(const UObject* WorldContextObject, int32 TeamId);
|
|
|
| UFUNCTION(BlueprintCallable, Category = Teams)
|
| static float GetTeamScalarWithFallback(ULyraTeamDisplayAsset* DisplayAsset, FName ParameterName, float DefaultValue);
|
|
|
| UFUNCTION(BlueprintCallable, Category = Teams)
|
| static FLinearColor GetTeamColorWithFallback(ULyraTeamDisplayAsset* DisplayAsset, FName ParameterName, FLinearColor DefaultValue);
|
|
|
| UFUNCTION(BlueprintCallable, Category = Teams)
|
| static UTexture* GetTeamTextureWithFallback(ULyraTeamDisplayAsset* DisplayAsset, FName ParameterName, UTexture* DefaultValue);
|
| };
|
|
|