Apparatus
Version 1.2.1
ECS data-driven workflow for Unreal Engine.
|
An actor as a subject with details. More...
#include <SubjectiveActor.h>
Public Member Functions | |
ASubjectiveActor () | |
virtual void | Tick (float DeltaTime) override |
virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
TArray< UDetail * > & | GetDetailsRef () override |
Direct access for the internal details array. More... | |
const TArray< UDetail * > & | GetDetailsRef () const override |
Direct access for the internal details array. More... | |
class UBelt * | GetPreferredBelt () const override |
Get the preferred belt of the subjective (if any). More... | |
Public Member Functions inherited from ISubjective | |
const FFingerprint & | GetFingerprint () const |
Get the active fingerprint of the subjective. More... | |
bool | Matches (const FFilter &Filter) const |
Check if the subjective matches a supplied filter. More... | |
bool | Matches (const FTraitmark &InTraitmark) const |
Check if the subjective matches a supplied traitmark as a filter. More... | |
bool | Matches (const FDetailmark &InDetailmark) const |
Check if the subjective matches a supplied detailmark as a filter. More... | |
void | GetDetails (const bool bIncludeDisabled, TArray< UDetail * > &OutDetails) const |
Get the details of the subjective. More... | |
UDetail * | FindDetail (TSubclassOf< UDetail > DetailClass, const bool bIncludeDisabled=false) const |
Find the detail by a type. More... | |
void | FindDetails (TSubclassOf< UDetail > DetailClass, TArray< UDetail * > &OutDetails, const bool bIncludeDisabled=false) const |
Find the details by their type. More... | |
bool | HasDetail (TSubclassOf< UDetail > DetailClass, const bool bIncludeDisabled=false) const |
Check if there is a detail of specific class in the subjective. More... | |
class UDetail * | EnableDetail (TSubclassOf< UDetail > DetailClass) |
Enable a detail of a certain type. More... | |
class UDetail * | AddDetail (TSubclassOf< UDetail > DetailClass, const bool bReuseDisabled=false) |
Add a new active detail or reuse an inactive one. More... | |
EApparatusStatus | DisableDetail (TSubclassOf< UDetail > DetailClass, const bool bDisableMultiple=false) |
Disable a certain detail(s) by type. More... | |
const struct FBeltSlot * | GetSlot () const |
Get the current belt slot of the subjective (if any). More... | |
bool | IsRegistered () const |
Check if the subjective is registered within the machine. More... | |
int32 | GetSlotIndex () const |
Get the current slot index of the subjective. More... | |
bool | IsBooted () const |
Check if the subject is booted. More... | |
FSubjectHandle & | GetHandle () |
Get the subject handle of this subjective. More... | |
const FSubjectHandle & | GetHandle () const |
Get the subject handle of this subjective. More... | |
virtual uint32 | GetHash () const |
Get the hash of the subjective. More... | |
Protected Member Functions | |
virtual void | BeginPlay () override |
Protected Member Functions inherited from ISubjective | |
void | MarkBooted () |
Set the subjective as booted. More... | |
void | TakeBeltSlot (class UBelt *InBelt, int32 InSlotIndex) |
Set the current belt slot of the subjective (if any). More... | |
UBelt * | GetBelt () const |
Get the active belt of the subjective (if any). More... | |
FFingerprint & | GetFingerprint () |
Get the internal fingerprint of the subjective. More... | |
struct FBeltSlot * | GetSlotPtr () |
Get the current belt slot of the subjective (if any). More... | |
Friends | |
class | FSubjectDetails |
Additional Inherited Members | |
Public Types inherited from ISubjective | |
enum | { InvalidSlotIndex = FBeltSlot::InvalidIndex } |
Protected Attributes inherited from ISubjective | |
TWeakObjectPtr< UBelt > | Belt = nullptr |
A weak reference to a current subjective's belt (if any). More... | |
int32 | SlotIndex = FBeltSlot::InvalidIndex |
The index of the belt slot, this subject currently resides in. More... | |
FSubjectHandle | Handle |
The subject handle which points to a global subjects registry. More... | |
An actor as a subject with details.
ASubjectiveActor::ASubjectiveActor | ( | ) |
|
overrideprotectedvirtual |
|
overridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Direct access for the internal details array.
Reimplemented from ISubjective.
|
inlineoverridevirtual |
Get the preferred belt of the subjective (if any).
Reimplemented from ISubjective.
|
overridevirtual |
|
friend |