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 "krpch.h"
13
14#include "SceneComponent.h"
15#include "SubClassOf.h"
16
17namespace Karma
18{
19 class AActor;
20
25 {
27
28 private:
30 TSubclassOf<AActor> m_ChildActorClass;
31
33 // ObjectPtr
34 AActor* m_ChildActor;
35
37 // ObjectPtr
38 AActor* m_ChildActorTemplate;
39
41 std::string m_ChildActorName;
42
44 UObject* m_ActorOuter;
45
47 //mutable FChildActorComponentInstanceData* CachedInstanceData;
48
50 uint8_t m_bNeedsRecreate : 1;
51
52 public:
58 virtual void BeginDestroy() override;
59 };
60}
#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 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:34
Template to allow TClassType's to be passed around with type safety.
Definition SubClassOf.h:119
A component that spawns an Actor when registered, and destroys it when unregistered.
Definition ChildActorComponent.h:25
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