LEAP Documentation 40220
Documentation for the LEAP project
LockOnNotificationWidget.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "LockOnNotificationWidget.generated.h"
8
9
10class UWeaponInstance;
11
12UCLASS()
14{
15 GENERATED_BODY()
16public:
17 void SetWeapon(UWeaponInstance* NewWeapon);
18 UFUNCTION(BlueprintImplementableEvent, Category = "Lock On")
19 void OnLockedOnStart();
20 UFUNCTION(BlueprintImplementableEvent, Category = "Lock On")
21 void OnLockedOnEnd();
22
23protected:
24 virtual void NativeTick(const FGeometry& MyGeometry, float InDeltaTime) override;
25
26 UFUNCTION(BlueprintImplementableEvent, Category="Lock On")
27 void OnNewYawRotation(const float YawRotation);
28 UFUNCTION(BlueprintImplementableEvent, Category = "Lock On")
29 void OnIncomingLockStrenghtChanged(const float NewStrenght);
30
31private:
32 TWeakObjectPtr<UWeaponInstance> WeaponLocking = NULL;
33 FORCEINLINE float GetYawRotationDifference(const FRotator RotA, const FRotator RotB) const { return RotA.Yaw - RotB.Yaw; }
34};
Definition: BasicUserWidget.h:14
Definition: LockOnNotificationWidget.h:14
Definition: WeaponInstance.h:220