Space Plunder
Loading...
Searching...
No Matches
FDoOnce Struct Reference

#include <DoOnce.h>

Public Member Functions

FORCEINLINE FDoOnce ()
 
FORCEINLINE FDoOnce (bool bStartClosed)
 
FORCEINLINE void Reset ()
 
FORCEINLINE bool Execute ()
 

Public Attributes

bool bDoOnce = false
 

Constructor & Destructor Documentation

◆ FDoOnce() [1/2]

FORCEINLINE FDoOnce::FDoOnce ( )
31 : bDoOnce(false)
32{
33
34}
bool bDoOnce
Definition DoOnce.h:14

◆ FDoOnce() [2/2]

FORCEINLINE FDoOnce::FDoOnce ( bool bStartClosed)
explicit
36 : bDoOnce(!bStartClosed)
37{
38
39}

Member Function Documentation

◆ Execute()

FORCEINLINE bool FDoOnce::Execute ( )
inline
21 {
22 if(bDoOnce)
23 {
24 bDoOnce = false;
25 return true;
26 }
27 return false;
28 }

◆ Reset()

FORCEINLINE void FDoOnce::Reset ( )
inline
19{bDoOnce = true;}

Member Data Documentation

◆ bDoOnce

bool FDoOnce::bDoOnce = false

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