added main and pause menus

This commit is contained in:
2026-06-05 20:00:33 +03:00
parent 0792f7cdfd
commit 61d5a57d8d
53 changed files with 1402 additions and 49 deletions
+13 -2
View File
@@ -22,11 +22,22 @@ public:
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
UGlobalSaveGameData* GetCurrentSave();
// True when a persisted save exists in the active slot — drives the main-menu
// Continue button's enabled state.
UFUNCTION(BlueprintPure, Category = "Save")
bool DoesSaveExist() const;
// Wipes the active slot and reseeds a fresh save from StartingSaveData, replacing
// the cached CurrentSave so the next GetCurrentSave returns the new game. Call before
// opening the gameplay level from the main-menu "New Game" flow.
UFUNCTION(BlueprintCallable, Category = "Save")
void StartNewGame();
protected:
UFUNCTION(BlueprintCallable)
void BP_LoadGame();
UFUNCTION(BlueprintCallable)
void BP_SaveGame();