コード例 #1
0
 /// <summary>
 /// Get value of the variable you specify
 /// </summary>
 /// <typeparam name="T">The type of the variable you want to read</typeparam>
 /// <param name="variableName">The name of the variable you stored</param>
 /// <returns>The value of the saved variable</returns>
 internal static T GetValue <T>(string variableName)
 {
     return(SaveEssentials.GetValue <T>(variableName));
 }
コード例 #2
0
 internal static void LoadSaveData()
 {
     SaveEssentials.LoadFile();
 }
コード例 #3
0
 /// <summary>
 /// Run this method in order to save all the stored variables in the Queue. Warning: this may cause a lag spike
 /// </summary>
 internal static void SaveQueue()
 {
     SaveEssentials.SaveQueue();
 }
コード例 #4
0
 /// <summary>
 /// Clears all the variables in the Queue, this method should never be called but its there
 /// </summary>
 internal static void PoofQueue()
 {
     SaveEssentials.PoofQueue();
 }
コード例 #5
0
 /// <summary>
 /// Queue a variable here in order to save it with the SaveQueue command
 /// </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 in the queue</param>
 /// <param name="value">The value you want to save in the queue</param>
 internal static void QueueVariable <T>(string variableName, T value, SavePaths path)
 {
     SaveEssentials.QueueSaveValue <T>(path, variableName, value);
 }
コード例 #6
0
 /// <summary>
 /// Queue a variable here in order to save it with the SaveQueue command
 /// </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 in the queue</param>
 /// <param name="value">The value you want to savein the queue</param>
 internal static void QueueVariable <T>(string variableName, T value)
 {
     SaveEssentials.QueueSaveValue <T>(variableName, value);
 }