moved metric to CogDebug

This commit is contained in:
Arnaud Jamin
2023-10-03 12:04:56 -04:00
parent 60b1578e96
commit 9eeaec254a
16 changed files with 531 additions and 486 deletions
@@ -12,6 +12,4 @@ class UCogInterfacesFilteredActor : public UInterface
class ICogInterfacesFilteredActor
{
GENERATED_BODY()
virtual bool IsActorFilteringDebug() const { return true; }
};
@@ -1,38 +0,0 @@
#pragma once
#include "CoreMinimal.h"
#include "CogInterfaceMetricActor.generated.h"
//--------------------------------------------------------------------------------------------------------------------------
USTRUCT()
struct FCogInterfaceMetricEventParams
{
GENERATED_BODY()
FName Name;
float MitigatedValue = 0;
float UnmitigatedValue = 0;
bool IsCritical = false;
};
//--------------------------------------------------------------------------------------------------------------------------
DECLARE_MULTICAST_DELEGATE_OneParam(FCogInterfaceOnMetricEvent, const FCogInterfaceMetricEventParams&);
//--------------------------------------------------------------------------------------------------------------------------
UINTERFACE(MinimalAPI, Blueprintable)
class UCogInterfaceMetricActor : public UInterface
{
GENERATED_BODY()
};
//--------------------------------------------------------------------------------------------------------------------------
class ICogInterfaceMetricActor
{
GENERATED_BODY()
public:
virtual FCogInterfaceOnMetricEvent& OnMetricEvent() = 0;
};