mirror of
https://github.com/Ed94/Cog.git
synced 2026-07-31 11:50:06 +00:00
rename CogInterfaces to CogInterface
This commit is contained in:
@@ -23,7 +23,7 @@ public class CogAbility : ModuleRules
|
||||
{
|
||||
"Core",
|
||||
"CogImgui",
|
||||
"CogInterfaces",
|
||||
"CogInterface",
|
||||
"CogDebug",
|
||||
"CogWindow",
|
||||
"GameplayAbilities",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "CogAbilityWindow_Cheats.h"
|
||||
|
||||
#include "CogAbilityDataAsset_Cheats.h"
|
||||
#include "CogInterfacesAllegiance.h"
|
||||
#include "CogInterfaceAllegianceActor.h"
|
||||
#include "CogDebugDraw.h"
|
||||
#include "CogImguiHelper.h"
|
||||
#include "EngineUtils.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "CogAbilityWindow_Damages.h"
|
||||
|
||||
#include "CogInterfacesDamageActor.h"
|
||||
#include "CogInterfaceDamageActor.h"
|
||||
#include "CogImguiHelper.h"
|
||||
#include "imgui.h"
|
||||
|
||||
@@ -236,12 +236,12 @@ void UCogAbilityWindow_Damages::RenderContent()
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
void UCogAbilityWindow_Damages::OnSelectionChanged(AActor* OldSelection, AActor* NewSelection)
|
||||
{
|
||||
if (ICogInterfacesDamageActor* DamageActor = Cast<ICogInterfacesDamageActor>(OldSelection))
|
||||
if (ICogInterfaceDamageActor* DamageActor = Cast<ICogInterfaceDamageActor>(OldSelection))
|
||||
{
|
||||
DamageActor->OnDamageEvent().Remove(OnDamageEventDelegate);
|
||||
}
|
||||
|
||||
if (ICogInterfacesDamageActor* DamageActor = Cast<ICogInterfacesDamageActor>(NewSelection))
|
||||
if (ICogInterfaceDamageActor* DamageActor = Cast<ICogInterfaceDamageActor>(NewSelection))
|
||||
{
|
||||
OnDamageEventDelegate = DamageActor->OnDamageEvent().AddUObject(this, &UCogAbilityWindow_Damages::OnDamageEvent);
|
||||
}
|
||||
@@ -257,14 +257,14 @@ void UCogAbilityWindow_Damages::GameTick(float DeltaSeconds)
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
void UCogAbilityWindow_Damages::OnDamageEvent(const FCogInterfacesDamageParams& Params)
|
||||
void UCogAbilityWindow_Damages::OnDamageEvent(const FCogInterfaceDamageParams& Params)
|
||||
{
|
||||
AActor* Selection = GetSelection();
|
||||
if (Params.Type == ECogInterfacesDamageEventType::DamageDealt)
|
||||
if (Params.Type == ECogInterfaceDamageEventType::DamageDealt)
|
||||
{
|
||||
DamageDealtStats.AddDamage(Params.MitigatedDamage, Params.IncomingDamage, Params.IsCritical);
|
||||
}
|
||||
else if (Params.Type == ECogInterfacesDamageEventType::DamageReceived)
|
||||
else if (Params.Type == ECogInterfaceDamageEventType::DamageReceived)
|
||||
{
|
||||
DamageReceivedStats.AddDamage(Params.MitigatedDamage, Params.IncomingDamage, Params.IsCritical);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "CogWindow.h"
|
||||
#include "CogAbilityWindow_Damages.generated.h"
|
||||
|
||||
struct FCogInterfacesDamageParams;
|
||||
struct FCogInterfaceDamageParams;
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
class FCogDamageInstance
|
||||
@@ -64,7 +64,7 @@ protected:
|
||||
private:
|
||||
|
||||
UFUNCTION()
|
||||
void OnDamageEvent(const FCogInterfacesDamageParams& Params);
|
||||
void OnDamageEvent(const FCogInterfaceDamageParams& Params);
|
||||
|
||||
FCogDamageStats DamageDealtStats;
|
||||
FCogDamageStats DamageReceivedStats;
|
||||
|
||||
Reference in New Issue
Block a user