GASATHON/Project/Source/Gasa/GasaGameInstance.h
2024-04-13 02:31:49 -04:00

29 lines
599 B
C++

#pragma once
#include "GasaCommon.h"
#include "GasaDevOptionsCache.h"
#include "GasaGameInstance.generated.h"
UCLASS(Blueprintable)
class GASA_API UGasaGameInstance : public UGameInstance
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, Category="Dev Cache")
FGasaDevOptionsCache DevOptionsCache;
#pragma region GameInstance
void Init() override;
#pragma endregion GameInstance
};
namespace Gasa
{
FORCEINLINE
UGasaGameInstance* GetGameInstance(UObject* Context) {
// TODO(Ed): Do this with proper checks
return Context->GetWorld()->GetGameInstance<UGasaGameInstance>();
}
}