LoadAllSessionData() public static method

Load stored session data and recreate the session objects.
public static LoadAllSessionData ( ) : void
return void
Ejemplo n.º 1
0
		/// <summary>
		/// Create new instance if none found.
		/// Loads plugin data from file.
		/// </summary>
		public static void InstantiateAndLoad()
		{
			if (_instance == null)
			{
				_instance = new HEU_PluginStorage();
				_instance.LoadPluginData();

				HEU_SessionManager.LoadAllSessionData();
			}
		}
		/// <summary>
		/// Create new instance if none found.
		/// Loads plugin data from file.
		/// </summary>
		public static void InstantiateAndLoad()
		{
			if (_instance == null)
			{
				_instance = new HEU_PluginStorage();
				_instance.LoadPluginData();

				// Set the current culture based on user plugin setting. By default (fresh install)
				// this sets to InvariantCulture to fix decimal parsing issues on certain locales (like es-ES).
				// Note that this sets for the entire project as long as the plugin is in use.
				// Users can turn this off from Plugin Settings.
				SetCurrentCulture(HEU_PluginSettings.SetCurrentThreadToInvariantCulture);

				HEU_SessionManager.LoadAllSessionData();

				_instance.LoadAssetEnvironmentPaths();
			}
		}