![]() |
Apparatus
Version 1.3.0
ECS data-driven workflow for Unreal Engine.
|
The belt slot, containing the cached details. More...
#include <BeltSlot.h>
Public Types | |
enum | { InvalidIndex = -1 , InvalidComboIndex = -1 } |
Public Member Functions | |
FBeltSlot () | |
The default invalid/uninitialized slot constructor. More... | |
class UBelt * | GetOwner () const |
Get the owning belt of the slot. More... | |
bool | IsLocked () const |
Check if this is a slot in a currently locked belt. More... | |
int32 | GetIndex () const |
Get the index of the slot in the belt. More... | |
struct FSubjectHandle | GetSubject () const |
Get the subject of the slot. More... | |
TScriptInterface< class ISubjective > | GetSubjective () const |
Get the subjective of the slot. More... | |
void | ResetDetails () const |
Clear all of the cached details in the slot, while actually maintaining a link to subjective itself (if any). More... | |
~FBeltSlot () | |
Deinitialize the belt slot. More... | |
bool | IsPresent (const int32 DetailIndex) |
Does a detail at the specified index exist? More... | |
bool | IsComboValid (const int32 ComboIndex) const |
Check if a combo is valid, i.e. More... | |
UDetail * | GetDetailAt (const int32 ComboIndex, const int32 DetailIndex) const |
Get the detail at a specified index according to the combination supplied. More... | |
UDetail * | GetDetail (const int32 ComboIndex, const TSubclassOf< UDetail > DetailClass) const |
Get the detail of a specific class according to the combination supplied. More... | |
bool | FetchDetails () |
Fetch the details from the current subjective. More... | |
void | Expand () |
Expand the slot according to a belt's detailmark. More... | |
bool | IsViable () const |
Is this slot actually valid? More... | |
const struct FDetailmark & | GetDetailmark () const |
The active detailmark of the slot, which is the same as its owning belt's. More... | |
operator bool () const | |
Is this slot actually valid? More... | |
bool | operator== (const FBeltSlot &Other) const |
Compare two belt slots for equality. More... | |
bool | operator!= (const FBeltSlot &Other) const |
Compare two belt slots for inequality. More... | |
EApparatusStatus | Set (const FBeltSlot &InSlot) |
Set the slot as another one from the same belt. More... | |
FBeltSlot & | operator= (const FBeltSlot &InSlot) |
Set the slot as another one from the same belt. More... | |
Friends | |
class | USubjectiveActorComponent |
class | UBelt |
struct | FBeltIt |
class | TArray< FBeltSlot > |
The belt slot, containing the cached details.
A faster cache is used internally.
anonymous enum |
|
inline |
The default invalid/uninitialized slot constructor.
|
inline |
Deinitialize the belt slot.
|
inline |
Expand the slot according to a belt's detailmark.
bool FBeltSlot::FetchDetails | ( | ) |
Fetch the details from the current subjective.
|
inline |
Get the detail of a specific class according to the combination supplied.
The detail index gets remapped to the current locked detailmark.
|
inline |
Get the detail at a specified index according to the combination supplied.
The detail index gets remapped to the current locked detailmark.
|
inline |
The active detailmark of the slot, which is the same as its owning belt's.
|
inline |
Get the index of the slot in the belt.
|
inline |
Get the owning belt of the slot.
|
inline |
Get the subject of the slot.
|
inline |
Get the subjective of the slot.
bool FBeltSlot::IsComboValid | ( | const int32 | ComboIndex | ) | const |
Check if a combo is valid, i.e.
has all the necessary details.
|
inline |
Check if this is a slot in a currently locked belt.
|
inline |
Does a detail at the specified index exist?
|
inline |
Is this slot actually valid?
|
inline |
Is this slot actually valid?
|
inline |
Compare two belt slots for inequality.
Set the slot as another one from the same belt.
InSlot | The slot to set as. |
|
inline |
Compare two belt slots for equality.
|
inline |
Clear all of the cached details in the slot, while actually maintaining a link to subjective itself (if any).
Performs no memory deallocations.
|
inline |
Set the slot as another one from the same belt.
InSlot | The slot to set as. |
|
friend |
|
friend |
|
friend |
|
friend |