30 lines
826 B
C
30 lines
826 B
C
|
|
// Copyright Echo Devgroup
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
#include "Abilities/Tasks/AbilityTask.h"
|
||
|
|
#include "TargetDataUnderMouse.generated.h"
|
||
|
|
|
||
|
|
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FMouseTargetDataSignature, const FGameplayAbilityTargetDataHandle&, DataHandle);
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
UCLASS()
|
||
|
|
class AURA_API UTargetDataUnderMouse : public UAbilityTask
|
||
|
|
{
|
||
|
|
GENERATED_BODY()
|
||
|
|
|
||
|
|
public:
|
||
|
|
UFUNCTION(BlueprintCallable, Category = "Ability|Tasks", meta = (DisplayName = "TargetDataUnderMouse", HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = true))
|
||
|
|
static UTargetDataUnderMouse* CreateTargetDataUnderMouse(UGameplayAbility* OwningAbility);
|
||
|
|
|
||
|
|
UPROPERTY(BlueprintAssignable)
|
||
|
|
FMouseTargetDataSignature ValidData;
|
||
|
|
|
||
|
|
private:
|
||
|
|
virtual void Activate() override;
|
||
|
|
|
||
|
|
void SendMouseCursorData();
|
||
|
|
};
|