LEAP Documentation 40220
Documentation for the LEAP project
FHistoryEntry Struct Reference

#include <DamageHistoryComponent.h>

Public Member Functions

 FHistoryEntry ()
 
 FHistoryEntry (const float InDamage, const AController *InInstigator, const float InLastHitTime, TSubclassOf< UProjectXDamageType > InDamageType)
 
void UpdateMostRecentDamage (const float InDamage, const TSubclassOf< UProjectXDamageType > &InDamageType)
 
TSubclassOf< UProjectXDamageTypeGetHighestDamageType () const
 
FORCEINLINE bool IsValid () const
 

Public Attributes

FDamageEvent DamageEvent
 
float Damage = 0.f
 
TWeakObjectPtr< AController > Instigator = NULL
 
TMap< TSubclassOf< UProjectXDamageType >, float > DamageTypesMap
 
TSubclassOf< UProjectXDamageTypeMostRecentDamage = NULL
 
float LastHitTime = 0.f
 
bool bKiller = false
 

Static Public Attributes

static FHistoryEntry InvalidEntry = FHistoryEntry(0, NULL, 0, NULL)
 

Constructor & Destructor Documentation

◆ FHistoryEntry() [1/2]

FHistoryEntry::FHistoryEntry ( )
inline

◆ FHistoryEntry() [2/2]

FHistoryEntry::FHistoryEntry ( const float  InDamage,
const AController *  InInstigator,
const float  InLastHitTime,
TSubclassOf< UProjectXDamageType InDamageType 
)
inline

Member Function Documentation

◆ GetHighestDamageType()

TSubclassOf< UProjectXDamageType > FHistoryEntry::GetHighestDamageType ( ) const
inline

◆ IsValid()

FORCEINLINE bool FHistoryEntry::IsValid ( ) const
inline

◆ UpdateMostRecentDamage()

void FHistoryEntry::UpdateMostRecentDamage ( const float  InDamage,
const TSubclassOf< UProjectXDamageType > &  InDamageType 
)
inline

Member Data Documentation

◆ bKiller

bool FHistoryEntry::bKiller = false

◆ Damage

float FHistoryEntry::Damage = 0.f

◆ DamageEvent

FDamageEvent FHistoryEntry::DamageEvent

◆ DamageTypesMap

TMap<TSubclassOf<UProjectXDamageType>, float> FHistoryEntry::DamageTypesMap

◆ Instigator

TWeakObjectPtr<AController> FHistoryEntry::Instigator = NULL

◆ InvalidEntry

FHistoryEntry FHistoryEntry::InvalidEntry = FHistoryEntry(0, NULL, 0, NULL)
static

◆ LastHitTime

float FHistoryEntry::LastHitTime = 0.f

◆ MostRecentDamage

TSubclassOf<UProjectXDamageType> FHistoryEntry::MostRecentDamage = NULL

The documentation for this struct was generated from the following files: