:(
This commit is contained in:
30
Source/Aura/Public/AbilitySystem/AuraProjectileSpell.h
Normal file
30
Source/Aura/Public/AbilitySystem/AuraProjectileSpell.h
Normal file
@@ -0,0 +1,30 @@
|
||||
// Copyright Echo Devgroup
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "AbilitySystem/GameplayAbility/AuraGameplayAbility.h"
|
||||
#include "AuraProjectileSpell.generated.h"
|
||||
|
||||
class AAuraProjectile;
|
||||
class UGameplayEffect;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class AURA_API UAuraProjectileSpell : public UAuraGameplayAbility
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
private:
|
||||
protected:
|
||||
virtual void ActivateAbility(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, const FGameplayEventData* TriggerEventData) override;
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Projectile")
|
||||
void SpawnProjectile(const FVector ProjectileTargetLocation);
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly)
|
||||
TSubclassOf<AAuraProjectile> ProjectileClass;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
TSubclassOf<UGameplayEffect> DamageEffectClass;
|
||||
};
|
||||
@@ -0,0 +1,22 @@
|
||||
// Copyright Echo Devgroup
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Abilities/GameplayAbility.h"
|
||||
#include "AuraGameplayAbility.generated.h"
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class AURA_API UAuraGameplayAbility : public UGameplayAbility
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, Category = "Input")
|
||||
FGameplayTag StartupInputTag;
|
||||
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
// 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();
|
||||
};
|
||||
Reference in New Issue
Block a user