ExoWest/Source/Exo/Public/Interfaces/Damageable.h
Kubson96 9e7fab3544 feat: add simple shooting component
Added interface for damage.
Added shooting component with simple shooting system.
Fix missing action bindings in player controller.
Added cylinder mesh to ExoEnemy and place him on TestMap.
2025-02-21 20:42:52 +01:00

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);
};