/// <summary>
 /// Serializes the plugin order to the permanent store.
 /// </summary>
 /// <param name="p_lstOrderedPlugins">The list of ordered plugins.</param>
 public void SavePluginOrder(IList <Plugin> p_lstOrderedPlugins)
 {
     string[] strPlugins = new string[p_lstOrderedPlugins.Count];
     for (Int32 i = 0; i < p_lstOrderedPlugins.Count; i++)
     {
         strPlugins[i] = p_lstOrderedPlugins[i].Filename;
     }
     LoadOrderManager.SetLoadOrder(strPlugins);
 }
Пример #2
0
 void Start()
 {
     loadOrderManager = GameObject.Find("LoadOrderManager").GetComponent <LoadOrderManager>();
     text             = this.gameObject.transform.GetChild(0).GetComponent <TextMeshProUGUI>();
     sceneIndex       = int.Parse(text.text);
 }
 /// <summary>
 /// Deserializes the plugin order from the permanent store.
 /// </summary>
 /// <returns>The ordered list of plugins.</returns>
 public IEnumerable <string> LoadPluginOrder()
 {
     Trace.TraceInformation("Getting Plugin Load Order from the load order manager...");
     return(new List <string>(LoadOrderManager.GetLoadOrder()));
 }