KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
ChildActorComponent.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "SceneComponent.h"
13#include "SubClassOf.h"
14
15namespace Karma
16{
17 class AActor;
18
23 {
25
26 private:
28 TSubclassOf<AActor> m_ChildActorClass;
29
31 // ObjectPtr
32 AActor* m_ChildActor;
33
35 // ObjectPtr
36 AActor* m_ChildActorTemplate;
37
39 std::string m_ChildActorName;
40
42 UObject* m_ActorOuter;
43
45 //mutable FChildActorComponentInstanceData* CachedInstanceData;
46
48 uint8_t m_bNeedsRecreate : 1;
49
50 public:
56 virtual void BeginDestroy() override;
57 };
58}
#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:45
This file contains the class USceneComponent.
This file contains the class TSubclassOf and relevant helpers.
Actor is the base class for an object that can be placed or spawned in a level.
Definition Actor.h:35
Template to allow TClassType's to be passed around with type safety.
Definition SubClassOf.h:117
A component that spawns an Actor when registered, and destroys it when unregistered.
Definition ChildActorComponent.h:23
virtual void BeginDestroy() override
Overridden BeginDestroy for UChildActorComponent.
Definition ChildActorComponent.cpp:5
The base class of all the game code relevant objects.
Definition Object.h:106
USceneComponent()
A constructor.
Definition SceneComponent.cpp:8