5#include "CoreMinimal.h"
8#include "CompanionMasterComponent.generated.h"
10UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent))
17 UCompanionMasterComponent();
21 void OpenCompanionOrderMenu();
22 void CloseCompanionOrderMenu();
23 UFUNCTION(BlueprintCallable, Category="Companion|
Master")
24 void SetupCompanionWidget();
26 UFUNCTION(BlueprintCallable, Category="Companion")
27 void SetCompanionToCommand(AActor* NewCompanion);
29 UFUNCTION(BlueprintCallable, Category="Companion")
30 void SetCompanionToCrouching(const
bool bValue) const;
32 UFUNCTION(BlueprintCallable, Category="Companion")
33 void CommandCompanion(const FHitResult& HitResult);
35 UFUNCTION(BlueprintCallable, Category="Companion")
36 bool GetIsCommandingCompanion()
const {
return bCommandingCompanion;}
38 UFUNCTION(BlueprintCallable, Category=
"Companion")
39 void UpdateInteractionTarget(const FHitResult& InteractionHits);
41 UFUNCTION(BlueprintCallable, Category="Companion")
42 void ChangeInteractionSelection(const
bool bUpSelection);
43 UFUNCTION(BlueprintCallable, Category="Companion")
44 void UpdateHUDSelection();
46 UFUNCTION(BlueprintCallable, Category="Companion")
47 void ToggleHUDPrompts(const
bool bShowPrompts = true);
50 virtual
void BeginPlay() override;
51 UFUNCTION(BlueprintCallable, Category="Companion")
52 void UpdateHUDPrompts(const
FInteractionData& CompanionInteraction, const FString& Message);
55 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Companions")
57 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Companions")
58 bool bCommandingCompanion = false;
60 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category="Companions")
61 AActor* CompanionActor =
nullptr;
63 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category="Companions")
64 TArray<AActor*> Companions;
66 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category="Companions")
69 UFUNCTION(BlueprintCallable, Category="Companion")
70 bool GetCurrentActorInteractionData(
FInteractionData& InteractionData, FString& Message) const;
76 UPROPERTY(EditAnywhere)
77 TSubclassOf<class UUserWidget> CompanionWidgetClass =
nullptr;
79 void GetCompanionHUD();
83 UPROPERTY(VisibleAnywhere)
84 AActor* LastHitActor =
nullptr;
87 int32 SelectedInteraction = 0;
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition CompanionHUD.h:20
Definition CompanionInterface.h:18
Definition Interaction.Build.cs:6
Represents a character component that can be added to an actor.
Definition BaseData.h:420