28 lines
622 B
C
28 lines
622 B
C
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
#include "UObject/Interface.h"
|
||
|
|
#include "Damageable.generated.h"
|
||
|
|
|
||
|
|
// This class does not need to be modified.
|
||
|
|
UINTERFACE(MinimalAPI, Blueprintable)
|
||
|
|
class UDamageable : public UInterface
|
||
|
|
{
|
||
|
|
GENERATED_BODY()
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
class EXO_API IDamageable
|
||
|
|
{
|
||
|
|
GENERATED_BODY()
|
||
|
|
|
||
|
|
// Add interface functions to this class. This is the class that will be inherited to implement this interface.
|
||
|
|
public:
|
||
|
|
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Damage")
|
||
|
|
void TakeDamage(float damageValue);
|
||
|
|
};
|