52 mutable AActor* m_OwnerPrivate;
55 uint8_t m_bHasBegunPlay : 1;
58 uint8_t m_bHasBeenCreated : 1;
61 uint8_t m_bIsActive : 1;
64 uint8_t m_bHasBeenInitialized : 1;
131 virtual void OnComponentCreated();
154 virtual void Activate(
bool bReset =
false);
163 void SetActiveFlag(
const bool bNewIsActive);
179 virtual void InitializeComponent();
194 virtual void BeginDestroy()
override;
202 virtual void UninitializeComponent();
209 virtual void OnComponentDestroyed(
bool bDestroyingHierarchy);
EComponentCreationMethod
Enum for UActorComponent instance creation method.
Definition ActorComponent.h:24
@ UserConstructionScript
Definition ActorComponent.h:30
@ SimpleConstructionScript
Definition ActorComponent.h:28
@ Instance
Definition ActorComponent.h:32
#define KARMA_API
Defining Karma's API macro for storage class information.
Definition Core.h:41
#define DECLARE_KARMA_CLASS(TClass, TSuperClass)
Karma's gamecode object class declaration.
Definition GFrameworkMacros.h:44
This file contains the class UObject along with helper functions.
@ Native
Native (UClass only).
Definition UObjectGlobals.h:251
Actor is the base class for an object that can be placed or spawned in a level.
Definition Actor.h:34
bool HasBeenInitialized() const
Indicates that InitializeComponent has been called, but UninitializeComponent has not yet.
Definition ActorComponent.h:170
virtual bool ShouldActivate() const
Definition ActorComponent.cpp:81
bool IsActive() const
Returns whether the component is active or not.
Definition ActorComponent.h:146
AActor * GetOwner() const
Follow the Outer chain to get the AActor that 'Owns' this component.
Definition ActorComponent.cpp:58
EComponentCreationMethod m_CreationMethod
Definition ActorComponent.h:213
bool HasBeenCreated() const
Indicates that OnCreatedComponent has been called, but OnDestroyedComponent has not yet.
Definition ActorComponent.h:124
UActorComponent()
A constructor.
Definition ActorComponent.cpp:8
virtual void TickComponent(float deltaTime)
Function called every frame on this ActorComponent. Override this function to implement custom logic ...
Definition ActorComponent.cpp:13
uint8_t m_bWantsInitializeComponent
Definition ActorComponent.h:220
uint8_t m_bRegistered
Definition ActorComponent.h:226
uint8_t m_bAutoActivate
Definition ActorComponent.h:216
virtual void BeginPlay()
Begins Play for the component. Called when the owning Actor begins play or when the component is crea...
Definition ActorComponent.cpp:26
bool HasBegunPlay() const
Indicates that BeginPlay has been called, but EndPlay has not yet.
Definition ActorComponent.h:186
bool IsRegistered() const
See if this component is currently registered.
Definition ActorComponent.h:138
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason)
Ends gameplay for this component. //Called from AActor::EndPlay only if bHasBegunPlay is true// <- no...
Definition ActorComponent.cpp:38
UObject()
Definition Object.cpp:10
The World is the top level object representing a map or a sandbox in which Actors and Components will...
Definition World.h:150
Type
Definition KarmaTypes.h:23