Space Plunder
Loading...
Searching...
No Matches
WaypointActor.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Actor.h"
8#include "WaypointActor.generated.h"
9
10UCLASS()
11class BASEHELPERS_API AWaypointActor : public AActor
12{
13 GENERATED_BODY()
14
15public:
17
18 UFUNCTION(BlueprintCallable, Category="Waypoint")
19 void SetOwnerPlayerFromController(APlayerController* PlayerController) const;
20 UFUNCTION(BlueprintCallable, Category="Waypoint")
21 void SetOwnerPlayerFromPawn(APawn* PlayerPawn) const;
22
23protected:
24 virtual void BeginPlay() override;
25
26 UFUNCTION(BlueprintCallable, Category="Waypoint")
27 void SetScreenSize();
28
29 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Waypoint")
30 class USceneComponent* SceneComponent;
31 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Waypoint")
32 class USphereComponent* SphereComponent;
33 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Waypoint")
34 class UScreenFacingWidgetComponent* ScreenFacingWidgetComponent;
35
36
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Waypoint|Size")
38 bool bUpdateSize = true;
39 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Waypoint|Size", meta=(EditCondition="bUpdateSize"))
40 float UpdateFrequency = 2.5f;
41
43 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Waypoint|Size")
44 float MaxDistance = 100.0f;
45 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Waypoint|Size")
46 float MinDrawSize = 35.0f;
47 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Waypoint|Size")
48 float MaxDrawSize = 50.0f;
49 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Waypoint|Size")
50 UWaypointWidget* WaypointWidget = nullptr;
51
52 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Waypoint")
53 AActor* SenderActor = nullptr;
54
55
56private:
57 UPROPERTY(EditAnywhere, Category="Waypoint")
58 TSubclassOf<UUserWidget> WaypointWidgetClass;
59
60 FTimerHandle WidgetSizeTimerHandle;
61};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition WaypointActor.h:12
Definition WaypointWidget.h:14