From 95481dba527ee78590c4c1033468da9b3d1c7a2f Mon Sep 17 00:00:00 2001 From: Louis Hobbs Date: Wed, 16 Aug 2023 23:32:50 +0100 Subject: [PATCH] Create NakatomiGameInstance --- Config/DefaultEngine.ini | 1 + Content/Blueprints/MainGameInstance.uasset | 3 +++ Source/Nakatomi/NakatomiGameInstance.cpp | 5 +++++ Source/Nakatomi/NakatomiGameInstance.h | 17 +++++++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 Content/Blueprints/MainGameInstance.uasset create mode 100644 Source/Nakatomi/NakatomiGameInstance.cpp create mode 100644 Source/Nakatomi/NakatomiGameInstance.h diff --git a/Config/DefaultEngine.ini b/Config/DefaultEngine.ini index cd05412..215ab22 100644 --- a/Config/DefaultEngine.ini +++ b/Config/DefaultEngine.ini @@ -4,6 +4,7 @@ GameDefaultMap=/Game/Levels/TestLevel.TestLevel GlobalDefaultGameMode=/Game/Player/DefaultGamemode.DefaultGamemode_C EditorStartupMap=/Game/Levels/TestLevel.TestLevel +GameInstanceClass=/Game/Blueprints/MainGameInstance.MainGameInstance_C [/Script/WindowsTargetPlatform.WindowsTargetSettings] DefaultGraphicsRHI=DefaultGraphicsRHI_DX12 diff --git a/Content/Blueprints/MainGameInstance.uasset b/Content/Blueprints/MainGameInstance.uasset new file mode 100644 index 0000000..ab96963 --- /dev/null +++ b/Content/Blueprints/MainGameInstance.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2340b56e8d03d68a4c187f51bcedadbaa05b1c6f2c7d838536cf22beaab8c1d +size 5770 diff --git a/Source/Nakatomi/NakatomiGameInstance.cpp b/Source/Nakatomi/NakatomiGameInstance.cpp new file mode 100644 index 0000000..707e561 --- /dev/null +++ b/Source/Nakatomi/NakatomiGameInstance.cpp @@ -0,0 +1,5 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "NakatomiGameInstance.h" + diff --git a/Source/Nakatomi/NakatomiGameInstance.h b/Source/Nakatomi/NakatomiGameInstance.h new file mode 100644 index 0000000..273120b --- /dev/null +++ b/Source/Nakatomi/NakatomiGameInstance.h @@ -0,0 +1,17 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "Engine/GameInstance.h" +#include "NakatomiGameInstance.generated.h" + +/** + * + */ +UCLASS() +class NAKATOMI_API UNakatomiGameInstance : public UGameInstance +{ + GENERATED_BODY() + +};