32 lines
775 B
C++
32 lines
775 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "ProjectFish/Data/PlayerInfoSaveGame.h"
|
|
#include "Subsystems/GameInstanceSubsystem.h"
|
|
#include "GameInfoManager.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class PROJECTFISH_API UGameInfoManager : public UGameInstanceSubsystem
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
|
|
|
|
protected:
|
|
UFUNCTION(BlueprintCallable)
|
|
void SaveGameInfo();
|
|
UFUNCTION(BlueprintCallable)
|
|
bool LoadGameInfo();
|
|
UFUNCTION(BlueprintCallable)
|
|
void CreateGameInfo(UContainerInfo* ShipContainer);
|
|
protected:
|
|
UPROPERTY(BlueprintReadOnly)
|
|
TObjectPtr<class UPlayerInfoSaveGame> PlayerInfo;
|
|
static FString SaveGameSlotName;
|
|
};
|