Illusion-UE5/hwanyoung2/Source/hwanyoung2/HYGameStateBase.h
2023-10-15 21:18:31 -04:00

28 lines
559 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Engine.h"
#include "GameFramework/GameStateBase.h"
#include "HYGameStateBase.generated.h"
/**
* The game state holds the database for all existing items within the game.
*/
UCLASS()
class HWANYOUNG2_API AHYGameStateBase : public AGameStateBase
{
GENERATED_BODY()
public:
AHYGameStateBase();
//getter function for item database
UDataTable* GetItemDatabase() const;
protected:
UPROPERTY(EditDefaultsOnly)
class UDataTable* ItemDatabase;
};