Exemplo n.º 1
0
 /**
  * <summary>Recreates ActionList resume data from a saved data string.</summary>
  * <param name = "_dataString">The saved data string</param>
  */
 public void LoadData(string _dataString)
 {
     activeLists.Clear();
     if (_dataString != null && _dataString.Length > 0)
     {
         string[] dataArray = _dataString.Split(SaveSystem.pipe[0]);
         foreach (string chunk in dataArray)
         {
             ActiveList activeList = new ActiveList();
             if (activeList.LoadData(chunk))
             {
                 activeLists.Add(activeList);
             }
         }
     }
 }
Exemplo n.º 2
0
        /**
         * <summary>Recreates ActionList resume data from a saved data string.</summary>
         * <param name = "_dataString">The saved data string</param>
         */
        public void LoadData(string _dataString)
        {
            activeLists.Clear();

            if (!string.IsNullOrEmpty(_dataString))
            {
                string[] dataArray = _dataString.Split(SaveSystem.pipe[0]);
                foreach (string chunk in dataArray)
                {
                    ActiveList activeList = new ActiveList();
                    if (activeList.LoadData(chunk))
                    {
                        activeLists.Add(activeList);
                    }
                }
            }
        }
Exemplo n.º 3
0
        /**
         * <summary>Recreates ActionList resume data from a saved data string.</summary>
         * <param name = "If set, the data is for a subscene and so existing data will not be cleared.</param>
         * <param name = "_localResumeData">The saved data string</param>
         */
        public void LoadData(string _dataString, SubScene subScene = null)
        {
            saveAfterCutscene       = false;
            playCutsceneOnVarChange = false;

            if (subScene == null)
            {
                activeLists.Clear();
            }

            if (!string.IsNullOrEmpty(_dataString))
            {
                string[] dataArray = _dataString.Split(SaveSystem.pipe[0]);
                foreach (string chunk in dataArray)
                {
                    ActiveList activeList = new ActiveList();
                    if (activeList.LoadData(chunk, subScene))
                    {
                        activeLists.Add(activeList);
                    }
                }
            }
        }