31 lines
853 B
C++
31 lines
853 B
C++
// Copyright 2025 https://yuewu.dev/en All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GGA_GameplayAbility.h"
|
|
#include "GCS_CombatAbility.generated.h"
|
|
|
|
class IGCS_CombatEntityInterface;
|
|
class UGCS_CombatSystemComponent;
|
|
|
|
/**
|
|
* Base combat ability.
|
|
* 基础战斗能力。
|
|
*/
|
|
UCLASS(Abstract)
|
|
class GENERICCOMBATSYSTEM_API UGCS_CombatAbility : public UGGA_GameplayAbility
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
protected:
|
|
UFUNCTION(BlueprintCallable, BlueprintPure, Category="GCS|Ability")
|
|
UGCS_CombatSystemComponent* GetCombatSystemFromActorInfo() const;
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintPure, Category="GCS|Ability")
|
|
UObject* GetCombatEntityFromActorInfo() const;
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintPure, Category="GCS|Ability")
|
|
TScriptInterface<IGCS_CombatEntityInterface> GetCombatEntityInterfaceFromActorInfo() const;
|
|
};
|