public static void Postfix(SaveSlotType gameMode, string name) { string data = SaveDataManager.Serialize(); SaveGameSlots.SaveDataToSlot(gameMode, SaveGameSystem.m_CurrentEpisode, SaveGameSystem.m_CurrentGameId, name, "global" + SaveDataManager.DATA_FILENAME_SUFFIX, data); SaveDataManager.Clear(); }
public static void Postfix(SaveSlotType gameMode, string name) { //Logger.LogWarning("Saving data to slot '{0}' for scene '{1}' in '{2}' mode", name, "global", gameMode); string filename = "global" + SaveDataManager.DATA_FILENAME_SUFFIX; //Logger.Log("Filename: '{0}'", filename); string data = SaveDataManager.Serialize(); //if (data != null) Logger.LogWarning(data); //else Logger.LogError("Data to save was null!"); bool globalSuccess = SaveGameSlots.SaveDataToSlot(gameMode, SaveGameSystem.m_CurrentEpisode, SaveGameSystem.m_CurrentGameId, name, filename, data); //Logger.Log(globalSuccess.ToString()); SaveDataManager.Clear(); }
public static void Prefix(string name, string sceneSaveName) { //Logger.LogWarning("Clearing save data for SaveSceneData"); //SaveGameSlots.DeleteFileFromSlot(name, sceneSaveName + SaveDataManager.DATA_FILENAME_SUFFIX); SaveDataManager.Clear(); }
public static void Prefix() { //Logger.LogWarning("Clearing save data for SaveGlobalData"); SaveDataManager.Clear(); }
public static void Postfix() { //Logger.LogWarning("Clearing save data for LoadSceneData"); SaveDataManager.Clear(); }
public static void Prefix() { SaveDataManager.Clear(); }