Space Plunder
Loading...
Searching...
No Matches
SaveLoadBPLib.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Kismet/BlueprintFunctionLibrary.h"
7#include "SaveLoadBPLib.generated.h"
8
9
10DECLARE_LOG_CATEGORY_CLASS(LogSaveLoad, Display, All);
11
12
16UCLASS()
17class BASEHELPERS_API USaveLoadBPLib : public UBlueprintFunctionLibrary
18{
19 GENERATED_BODY()
20
21public:
22
23 UFUNCTION(BlueprintCallable, Category="Save/Load", meta=(WorldContext="WorldContextObject"))
24 static bool SaveGame(const UObject* WorldContextObject);
25
26 static bool SaveLoadAllComponents(AActor* Actor, const bool bSave = true);
27
28 static bool SaveLoadActor(AActor* Actor, const bool bSave = true);
29
30 UFUNCTION(BlueprintCallable, Category="Save/Load")
31 static bool LoadPlayer(APlayerState* PlayerState);
32 UFUNCTION(BlueprintCallable, Category="Save/Load")
33 static bool SavePlayer(APlayerState* PlayerState);
34
35 UFUNCTION(BlueprintCallable, Category="Save/Load")
36 static bool SaveActor(AActor* Actor);
37 UFUNCTION(BlueprintCallable, Category="Save/Load")
38 static bool LoadActor(AActor* Actor);
39
41 UFUNCTION(BlueprintCallable, Category="Save/Load")
42 static bool SaveAllComponents(AActor* Actor);
44 UFUNCTION(BlueprintCallable, Category="Save/Load")
45 static bool LoadAllComponents(AActor* Actor);
46
47 static bool SaveGameState(const UObject* WorldContextObject, const bool bSave = true);
48 static bool SaveGameMode(const UObject* WorldContextObject, const bool bSave = true);
49 static bool SaveGameInstance(const UObject* WorldContextObject, const bool bSave = true);
50
51
52 UFUNCTION(BlueprintCallable, Category="Save/Load", meta=(WorldContext="WorldContextObject"))
53 static bool LoadGame(const UObject* WorldContextObject);
54
55
56};
57
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
DECLARE_LOG_CATEGORY_CLASS(LogSaveLoad, Display, All)
Definition SaveLoadBPLib.h:18