Ejemplo n.º 1
0
        /**
         * <summary>De-serializes a RememberData class.</summary>
         * <param name = "dataString">The RememberData class, serialized as a string</param>
         * <returns>The de-serialized RememberData class</return>
         */
        public static T LoadScriptData <T> (string dataString) where T : RememberData
        {
            iFileFormatHandler fileFormatHandler = SaveSystem.FileFormatHandler;

            if (dataString.StartsWith(fileFormatHandler.GetSaveMethod()))
            {
                dataString = dataString.Remove(0, fileFormatHandler.GetSaveMethod().ToCharArray().Length);
            }

            return(fileFormatHandler.LoadScriptData <T> (dataString));
        }