LEAP Documentation 40220
Documentation for the LEAP project
FGlobalWeaponAmmo Struct Reference

#include <GlobalAmmoComponent.h>

Public Member Functions

 FGlobalWeaponAmmo (TSubclassOf< UWeaponInstance > InWeapon, float InAmmo, float Modifier=1.0f)
 
 FGlobalWeaponAmmo ()
 
bool IsEqualTo (const FGlobalWeaponAmmo &Other) const
 
bool HasEnoughAmmo (float Amount) const
 
bool ConsumeAmmo (float Amount, class UGlobalAmmoComponent *OwningComponent)
 
void UpdateProgressAmmoRestock (class UGlobalAmmoComponent *OwningComponent)
 
void ClientCheckRestockTimer (class UGlobalAmmoComponent *OwningComponent)
 
void StartRestockTimer (class UGlobalAmmoComponent *OwningComponent)
 
bool operator== (const FGlobalWeaponAmmo &Other) const
 
bool operator!= (const FGlobalWeaponAmmo &Other) const
 

Public Attributes

TSubclassOf< UWeaponInstanceWeapon = NULL
 
float Ammo = 0.f
 
float RestockTimerStart = -1.f
 
float RestockModifier = 0.0f
 

Static Public Attributes

static FGlobalWeaponAmmo InvalidEntry = FGlobalWeaponAmmo(NULL, 0.f)
 

Constructor & Destructor Documentation

◆ FGlobalWeaponAmmo() [1/2]

FGlobalWeaponAmmo::FGlobalWeaponAmmo ( TSubclassOf< UWeaponInstance InWeapon,
float  InAmmo,
float  Modifier = 1.0f 
)
inline

◆ FGlobalWeaponAmmo() [2/2]

FGlobalWeaponAmmo::FGlobalWeaponAmmo ( )
inline

Member Function Documentation

◆ ClientCheckRestockTimer()

void FGlobalWeaponAmmo::ClientCheckRestockTimer ( class UGlobalAmmoComponent *  OwningComponent)

◆ ConsumeAmmo()

bool FGlobalWeaponAmmo::ConsumeAmmo ( float  Amount,
class UGlobalAmmoComponent *  OwningComponent 
)

◆ HasEnoughAmmo()

bool FGlobalWeaponAmmo::HasEnoughAmmo ( float  Amount) const

◆ IsEqualTo()

bool FGlobalWeaponAmmo::IsEqualTo ( const FGlobalWeaponAmmo Other) const

◆ operator!=()

bool FGlobalWeaponAmmo::operator!= ( const FGlobalWeaponAmmo Other) const
inline

◆ operator==()

bool FGlobalWeaponAmmo::operator== ( const FGlobalWeaponAmmo Other) const
inline

◆ StartRestockTimer()

void FGlobalWeaponAmmo::StartRestockTimer ( class UGlobalAmmoComponent *  OwningComponent)

◆ UpdateProgressAmmoRestock()

void FGlobalWeaponAmmo::UpdateProgressAmmoRestock ( class UGlobalAmmoComponent *  OwningComponent)

Member Data Documentation

◆ Ammo

float FGlobalWeaponAmmo::Ammo = 0.f

◆ InvalidEntry

FGlobalWeaponAmmo FGlobalWeaponAmmo::InvalidEntry = FGlobalWeaponAmmo(NULL, 0.f)
static

◆ RestockModifier

float FGlobalWeaponAmmo::RestockModifier = 0.0f

◆ RestockTimerStart

float FGlobalWeaponAmmo::RestockTimerStart = -1.f

◆ Weapon

TSubclassOf<UWeaponInstance> FGlobalWeaponAmmo::Weapon = NULL

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