Save File implemented.

This commit is contained in:
2024-01-01 03:49:37 -06:00
parent dd2146ebda
commit 5e5e8f5656
26 changed files with 1929 additions and 7 deletions
+2
View File
@@ -46,6 +46,7 @@ All rights reserved.
#include "EncountersSpawnListScrollableWindowComponent.h"
#include "VisualNovel.h"
#include "State_OverworldMap.h"
#include "SaveFile.h"
INCLUDE_MONSTER_LIST
INCLUDE_game
@@ -169,6 +170,7 @@ ConnectionPoint&State_OverworldMap::GetCurrentConnectionPoint(){
void State_OverworldMap::StartLevel(){
game->UpdateDiscordStatus(State_OverworldMap::GetCurrentConnectionPoint().name,game->GetPlayer()->GetClassName());
SaveFile::SaveGame();
if(State_OverworldMap::GetCurrentConnectionPoint().map.starts_with("STORY")){
VisualNovel::LoadVisualNovel(State_OverworldMap::GetCurrentConnectionPoint().map);
}else{