Apparatus
Version 1.3.0
ECS data-driven workflow for Unreal Engine.
|
An iterable chunk sequence holder. More...
#include <ChunkChain.h>
Public Types | |
enum | { InvalidCursorId = -1 , DefaultCursorId = 0 , InvalidSegmentIndex = -1 } |
Public Member Functions | |
EApparatusStatus | Reset () |
Unchain the chunks and reset the state completely. More... | |
template<typename TAllocator > | |
EApparatusStatus | Enchain (const FFilter &InFilter, const TArray< UChunk *, TAllocator > &InChunks) |
Set to chain a set of chunks with a traitmark. More... | |
int32 | FindSegment (const int32 SubjectIndex) const |
Find a certain chain segment by a subject index. More... | |
bool | Begin (const int32 CursorId=DefaultCursorId) const |
Begin iterating the chain. More... | |
bool | Advance (const int32 CursorId=DefaultCursorId) const |
Advance iterating the chain to the next index. More... | |
bool | BeginOrAdvance (const int32 CursorId=DefaultCursorId) const |
Begin or advance iterating the chain. More... | |
FChunkChain & | operator= (const FChunkChain &InChain) |
Set a chain equal to another chain. More... | |
FSubjectHandle | GetSubject (const int32 CursorId=DefaultCursorId) const |
Get the subject of the current iteration. More... | |
TScriptInterface< ISubjective > | GetSubjective (const int32 CursorId=DefaultCursorId) const |
Get the subjective of the current iteration (if any). More... | |
UDetail * | GetDetail (const int32 CursorId, TSubclassOf< UDetail > DetailClass) const |
Get the detail on the current iteration of a certain type. More... | |
UDetail * | GetDetail (TSubclassOf< UDetail > DetailClass) const |
Get the detail on the current iteration of a certain type. More... | |
EApparatusStatus | GetTraitAt (const int32 CursorId, const int32 TraitIndex, void *const OutTraitData, const bool bTraitDataInitialized=true) const |
Get the trait on the current iteration at a specified index. More... | |
EApparatusStatus | GetTraitAt (const int32 TraitIndex, void *const OutTraitData, const bool bTraitDataInitialized=true) const |
Get the trait on the current iteration at a specified index via default cursor. More... | |
FChunkChain () | |
The default constructor leaving the chain uninitialized. More... | |
FChunkChain (const FChunkChain &InChain) | |
Construct a new chain as a copy of another one. More... | |
bool | IsIterating () const |
Check if the chain currently being iterated by some cursor. More... | |
An iterable chunk sequence holder.
anonymous enum |
|
inline |
The default constructor leaving the chain uninitialized.
|
inline |
Construct a new chain as a copy of another one.
InChain | A chain to copy. |
|
inline |
Advance iterating the chain to the next index.
|
inline |
Begin iterating the chain.
|
inline |
Begin or advance iterating the chain.
false
if the iteration should be ended.
|
inline |
Set to chain a set of chunks with a traitmark.
InFilter | The filter to enchain under. |
InChunks | The chunks to enchain. |
|
inline |
Find a certain chain segment by a subject index.
|
inline |
Get the detail on the current iteration of a certain type.
CursorId | The identifier of the cursor to get from. |
DetailClass | The class of the detail to get. |
Get the detail on the current iteration of a certain type.
|
inline |
Get the subject of the current iteration.
|
inline |
Get the subjective of the current iteration (if any).
nullptr
, if there is none.
|
inline |
Get the trait on the current iteration at a specified index.
CursorId | The identifier of the cursor to get from. |
TraitIndex | The index of the trait. |
OutTraitData | The output trait data. |
bTraitDataInitialized | Was trait data initialized prior to calling this function? |
|
inline |
Get the trait on the current iteration at a specified index via default cursor.
TraitIndex | The index of the trait. |
OutTraitData | The output trait data. |
bTraitDataInitialized | Was trait data initialized prior to calling this function? |
|
inline |
Check if the chain currently being iterated by some cursor.
|
inline |
Set a chain equal to another chain.
|
inline |
Unchain the chunks and reset the state completely.