|
|
|
|
| #pragma once
|
|
|
| #include "CommonUserWidget.h"
|
|
|
| #include "LyraReticleWidgetBase.generated.h"
|
|
|
| class ULyraInventoryItemInstance;
|
| class ULyraWeaponInstance;
|
| class UObject;
|
| struct FFrame;
|
|
|
| UCLASS(Abstract)
|
| class ULyraReticleWidgetBase : public UCommonUserWidget
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
| ULyraReticleWidgetBase(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
|
|
|
| UFUNCTION(BlueprintImplementableEvent)
|
| void OnWeaponInitialized();
|
|
|
| UFUNCTION(BlueprintCallable)
|
| void InitializeFromWeapon(ULyraWeaponInstance* InWeapon);
|
|
|
|
|
| UFUNCTION(BlueprintCallable, BlueprintPure)
|
| float ComputeSpreadAngle() const;
|
|
|
|
|
| UFUNCTION(BlueprintCallable, BlueprintPure)
|
| float ComputeMaxScreenspaceSpreadRadius() const;
|
|
|
| |
| |
| |
|
|
| UFUNCTION(BlueprintCallable, BlueprintPure)
|
| bool HasFirstShotAccuracy() const;
|
|
|
| protected:
|
| UPROPERTY(BlueprintReadOnly)
|
| TObjectPtr<ULyraWeaponInstance> WeaponInstance;
|
|
|
| UPROPERTY(BlueprintReadOnly)
|
| TObjectPtr<ULyraInventoryItemInstance> InventoryInstance;
|
| };
|
|
|