Unreal OpenAI API 1.0.0
SaveSettings.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/SaveGame.h"
7#include "SaveSettings.generated.h"
8
9class UBaseService;
10
11UCLASS()
12class OPENAIEDITOR_API USaveSettings : public USaveGame
13{
14 GENERATED_BODY()
15
16public:
17 void RegisterService(const TSubclassOf<UBaseService>& ServiceClass);
18 void UnRegisterService(const TSubclassOf<UBaseService>& ServiceClass);
19 bool IsServerRegistered(const TSubclassOf<UBaseService>& ServiceClass) const;
20
21 static TObjectPtr<USaveSettings> Load();
22 static void Save(USaveGame* SaveGameObject);
23
24private:
25 UPROPERTY()
26 TArray<TSubclassOf<UBaseService>> Services;
27};
Definition: BaseService.h:16
Definition: SaveSettings.h:13