Karma Engine
Loading...
Searching...
No Matches
Level.h
1#pragma once
2
3#include "krpch.h"
4
5#include "Core/Object.h"
6
7namespace Karma
8{
9 class AActor;
10 class UWorld;
11
12 class AWorldSettings;
13
20 class KARMA_API ULevel : public UObject
21 {
22 DECLARE_KARMA_CLASS(ULevel, UObject)
23
24 public:
25 ULevel();
26
27 public:
28
31
34
36 std::vector<AActor*> m_ActorsForGC;
37
43 UWorld* m_OwningWorld; // UE uses smart pointer
44
45 public:
46 void Initialize(const FURL& InURL);
47
52 void SetWorldSettings(AWorldSettings* NewWorldSettings);
53
54 public:
55 virtual UWorld* GetWorld() const override final;
56
57 private:
61 // TObjectPTR in UE
62 AWorldSettings* m_WorldSettings;
63 };
64}
This file contains the class UObject along with helper functions.
Karma's std::vector wrapper.
Definition KarmaTypes.h:128
Definition WorldSettings.h:15
Definition Level.h:21
UWorld * m_OwningWorld
Definition Level.h:43
FURL m_URL
Definition Level.h:30
KarmaVector< AActor * > m_Actors
Definition Level.h:33
std::vector< AActor * > m_ActorsForGC
Definition Level.h:36
The base class of all the game code relevant objects.
Definition Object.h:106
Definition World.h:108
Definition KarmaTypes.h:378