Files
ChildHood/Source/ChildHood/Variant_Combat/Interfaces/CombatAttacker.h
T
DESKTOP-2K5TJI4\admin 05b1e1bd95 config: 初始化UE5项目文件与C++源码
- ChildHood.uproject + Config/ 引擎配置
- Source/ 含第三人称模板、战斗/平台/横版变体
- .vsconfig Visual Studio依赖配置
2026-06-01 18:26:28 +08:00

37 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Interface.h"
#include "CombatAttacker.generated.h"
/**
* CombatAttacker Interface
* Provides common functionality to trigger attack animation events.
*/
UINTERFACE(MinimalAPI, NotBlueprintable)
class UCombatAttacker : public UInterface
{
GENERATED_BODY()
};
class ICombatAttacker
{
GENERATED_BODY()
public:
/** Performs an attack's collision check. Usually called from a montage's AnimNotify */
UFUNCTION(BlueprintCallable, Category="Attacker")
virtual void DoAttackTrace(FName DamageSourceBone) = 0;
/** Performs a combo attack's check to continue the string. Usually called from a montage's AnimNotify */
UFUNCTION(BlueprintCallable, Category="Attacker")
virtual void CheckCombo() = 0;
/** Performs a charged attack's check to loop the charge animation. Usually called from a montage's AnimNotify */
UFUNCTION(BlueprintCallable, Category="Attacker")
virtual void CheckChargedAttack() = 0;
};