You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
635 B
22 lines
635 B
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Savegame;
|
|
|
|
/// <summary>
|
|
/// This class manages the loading of the savegame throughout the gameplay flow.
|
|
/// </summary>
|
|
public partial class SaveGameManager : Node
|
|
{
|
|
public static string USER_DATA_FILE_PATH = "user://save_data/userData.json";
|
|
|
|
public static SaveGameManager? Instance { get; private set; } = null!;
|
|
|
|
public override void _EnterTree()
|
|
{
|
|
Instance = this;
|
|
USER_DATA_FILE_PATH = ProjectSettings.GlobalizePath(USER_DATA_FILE_PATH);
|
|
SavegameService.SavePath = USER_DATA_FILE_PATH;
|
|
SavegameService.Load();
|
|
}
|
|
|
|
} |