added the enemy interface
This commit is contained in:
parent
fef6bd8e3e
commit
16eddc8849
@ -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
|
||||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
// Fill out your copyright notice in the Description page of Project Settings.
|
// Copyright; GhostPacket Games
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -3,3 +3,10 @@
|
|||||||
|
|
||||||
#include "Character/AuraEnemy.h"
|
#include "Character/AuraEnemy.h"
|
||||||
|
|
||||||
|
void AAuraEnemy::HighlightActor()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void AAuraEnemy::UnHighlightActor()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
6
Source/Aura/Private/Interaction/EnemyInterface.cpp
Normal file
6
Source/Aura/Private/Interaction/EnemyInterface.cpp
Normal 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.
|
@ -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;
|
||||||
};
|
};
|
||||||
|
22
Source/Aura/Public/Interaction/EnemyInterface.h
Normal file
22
Source/Aura/Public/Interaction/EnemyInterface.h
Normal 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;
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user