DRG-Femboy-Voice/Source/FSD/Public/ObjectTemperatureComponent.h
2025-04-15 12:39:31 -07:00

45 lines
1.4 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "OnStartBurningDelegate.h"
#include "TemperatureComponent.h"
#include "ObjectTemperatureComponent.generated.h"
class UHealthComponentBase;
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class UObjectTemperatureComponent : public UTemperatureComponent {
GENERATED_BODY()
public:
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FOnStartBurning OnStartBurning;
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float TemperatureChangeScale;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float BurnTemperature;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float DouseFireTemperature;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 CoolingRate;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
bool IsHeatsourceWhenOnFire;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float OnFireHeatRange;
public:
UObjectTemperatureComponent();
protected:
UFUNCTION(BlueprintCallable)
void TimerCallback();
UFUNCTION(BlueprintCallable)
void OnDeath(UHealthComponentBase* HealthComponent);
};