Karma Engine
Loading...
Searching...
No Matches
GameInstance.h
1#pragma once
2
3#include "krpch.h"
4
5#include "Object.h"
6
7namespace Karma
8{
15 class UGameInstance : public UObject
16 {
17 DECLARE_KARMA_CLASS(UGameInstance, UObject)
18
19 public:
21
22 protected:
23 struct FWorldContext* m_WorldContext;
24
25 protected:
27 virtual void Init();
28
29 class KEngine* GetEngine() const;
30
31 public:
32 /* Called to initialize the game instance for standalone instances of the game */
33 void InitializeStandalone(const std::string& InWorldName = "No_Name", UPackage* InWorldPackage = nullptr);
34
35 struct FWorldContext* GetWorldContext() const { return m_WorldContext; }
36 };
37}
This file contains the class UObject along with helper functions.
Definition Engine.h:155
Definition GameInstance.h:16
virtual void Init()
Definition GameInstance.cpp:12
The base class of all the game code relevant objects.
Definition Object.h:106
Definition Package.h:9
Definition Engine.h:36