Example #1
0
 /// <summary>
 /// Call this method to instantly save a variable in the specified save file
 /// </summary>
 /// <typeparam name="T">The type of the variable you want to save</typeparam>
 /// <param name="path">The path of the file you want to save the variable to</param>
 /// <param name="variableName">The name of the variable you want to save</param>
 /// <param name="value">The value you want to save</param>
 internal static void SaveVariable <T>(string variableName, T value, SavePaths path)
 {
     SaveEssentials.SaveValue <T>(path, variableName, value);
 }
Example #2
0
 /// <summary>
 /// Call this method to instantly save a variable in the main save file
 /// </summary>
 /// <typeparam name="T">The type of the variable you want to save</typeparam>
 /// <param name="variableName">The name of the variable you want to save</param>
 /// <param name="value">The value you want to save</param>
 internal static void SaveVariable <T>(string variableName, T value)
 {
     SaveEssentials.SaveValue <T>(variableName, value);
 }