added the enemy interface

This commit is contained in:
ghostie 2025-08-30 14:07:09 -05:00
parent fef6bd8e3e
commit 16eddc8849
7 changed files with 43 additions and 4 deletions

View File

@ -2,7 +2,7 @@
bEnabled=False bEnabled=False
Startup=AutomaticButHidden Startup=AutomaticButHidden
bEnableReinstancing=True bEnableReinstancing=True
bAutomaticallyCompileNewClasses=True bAutomaticallyCompileNewClasses=False
bPreloadEngineModules=False bPreloadEngineModules=False
bPreloadEnginePluginModules=False bPreloadEnginePluginModules=False
bPreloadProjectModules=True bPreloadProjectModules=True

View File

@ -1,4 +1,4 @@
// Fill out your copyright notice in the Description page of Project Settings. // Copyright; GhostPacket Games
#pragma once #pragma once

View File

@ -3,3 +3,10 @@
#include "Character/AuraEnemy.h" #include "Character/AuraEnemy.h"
void AAuraEnemy::HighlightActor()
{
}
void AAuraEnemy::UnHighlightActor()
{
}

View File

@ -0,0 +1,6 @@
// Copyright; GhostPacket Games
#include "Interaction/EnemyInterface.h"
// Add default functionality here for any IEnemyInterface functions that are not pure virtual.

View File

@ -4,14 +4,18 @@
#include "CoreMinimal.h" #include "CoreMinimal.h"
#include "Character/AuraCharacterBase.h" #include "Character/AuraCharacterBase.h"
#include "Interaction/EnemyInterface.h"
#include "AuraEnemy.generated.h" #include "AuraEnemy.generated.h"
/** /**
* *
*/ */
UCLASS() UCLASS()
class AURA_API AAuraEnemy : public AAuraCharacterBase class AURA_API AAuraEnemy : public AAuraCharacterBase, public IEnemyInterface
{ {
GENERATED_BODY() GENERATED_BODY()
public:
virtual void HighlightActor() override;
virtual void UnHighlightActor() override;
}; };

View File

@ -0,0 +1,22 @@
// Copyright; GhostPacket Games
#pragma once
#include "CoreMinimal.h"
#include "UObject/Interface.h"
#include "EnemyInterface.generated.h"
UINTERFACE(MinimalAPI)
class UEnemyInterface : public UInterface
{
GENERATED_BODY()
};
class AURA_API IEnemyInterface
{
GENERATED_BODY()
public:
virtual void HighlightActor () = 0; // pure virtual function
virtual void UnHighlightActor () = 0;
};