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

41 lines
941 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "CombatLavaFloor.generated.h"
class UStaticMeshComponent;
class UPrimitiveComponent;
/**
* A basic actor that applies damage on contact through the ICombatDamageable interface.
*/
UCLASS(abstract)
class ACombatLavaFloor : public AActor
{
GENERATED_BODY()
/** Floor mesh */
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components", meta = (AllowPrivateAccess = "true"))
UStaticMeshComponent* Mesh;
protected:
/** Amount of damage to deal on contact */
UPROPERTY(EditAnywhere, Category="Damage")
float Damage = 10000.0f;
public:
/** Constructor */
ACombatLavaFloor();
protected:
/** Blocking hit handler */
UFUNCTION()
void OnFloorHit(UPrimitiveComponent* HitComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit);
};