Karma Engine
|
#include <KarmaUtilities.h>
Public Member Functions | |
FActorIteratorState () | |
FActorIteratorState (const UWorld *InWorld, const TSubclassOf< AActor > InClass) | |
FORCEINLINE AActor * | GetActorChecked () const |
Public Attributes | |
const UWorld * | m_CurrentWorld |
KarmaVector< UObject * > | m_ObjectArray |
int32_t | m_Index |
bool | m_ReachedEnd |
int32_t | m_ConsideredCount |
AActor * | m_CurrentActor |
KarmaVector< AActor * > | m_SpawnedActorArray |
UClass * | m_DesiredClass |
Abstract base class for actor iteration. Implements all operators and relies on IsActorSuitable to be overridden by derived class. Note that when Playing In Editor, this will find actors only in CurrentWorld.
|
inline |
Handle to the registered OnActorSpawned delegate
|
inline |
Default constructor, initializes everything relevant
|
inline |
Returns the current suitable actor pointed at by the Iterator
int32_t Karma::FActorIteratorState::m_ConsideredCount |
Number of actors that have been considered thus far
AActor* Karma::FActorIteratorState::m_CurrentActor |
Current actor pointed to by actor iterator
const UWorld* Karma::FActorIteratorState::m_CurrentWorld |
Current world we are iterating upon
UClass* Karma::FActorIteratorState::m_DesiredClass |
The class type we are iterating, kept for filtering
int32_t Karma::FActorIteratorState::m_Index |
index of the current element in the object array
KarmaVector<UObject*> Karma::FActorIteratorState::m_ObjectArray |
Results from the GetObjectsOfClass query
bool Karma::FActorIteratorState::m_ReachedEnd |
Whether we already reached the end
KarmaVector<AActor*> Karma::FActorIteratorState::m_SpawnedActorArray |
Contains any actors spawned during iteration