✨ Starting a new game resets the inventory now
This commit is contained in:
@@ -18,6 +18,9 @@ public static class SavegameService
|
||||
public static Dictionary<string, string> SaveDatas = new ();
|
||||
|
||||
public static bool _loaded = false;
|
||||
|
||||
public delegate void SaveGameDelegate();
|
||||
public static event SaveGameDelegate OnSaveGameReset = delegate {};
|
||||
|
||||
|
||||
public static void AppendDataToSave( string id, Dictionary<string, Variant> payload)
|
||||
@@ -130,5 +133,6 @@ public static class SavegameService
|
||||
{
|
||||
SaveDatas = new ();
|
||||
Save();
|
||||
OnSaveGameReset();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user