public static void DownloadConfig <T>()
        where T : CsvDataParser, new()
    {
        m_parser = new T();

        GLDDownloadConfig downloadConfig = LoadDownLoadConfig();

        EditorCoroutineRunner.StartEditorCoroutine(DownloadGoogleSheet(downloadConfig));
    }
    private static IEnumerator DownloadGoogleSheet(GLDDownloadConfig config)
    {
        if (config != null && config.downLoadList.Count > 0)
        {
            for (int i = 0; i < config.downLoadList.Count; i++)
            {
                GLDDownloadData data = config.downLoadList[i];
                if (data != null)
                {
                    yield return(DownloadGoogleSheet(data));
                }
            }
        }

        m_parser = null;

        AssetDatabase.Refresh();
    }
    private static bool GenerateVariableTypeAndNameList(string[] csvRow, ref List <CsvGridData> variableTypeList,
                                                        ref List <CsvGridData> variableNameList, ref bool findVariableType, ref bool findVariableName)
    {
        ECsvTableRowType rowType = GetTableRowType(csvRow[0], ref findVariableType, ref findVariableName);

        if (rowType == ECsvTableRowType.BlankRow ||
            rowType == ECsvTableRowType.Comment ||
            rowType == ECsvTableRowType.MaxType)
        {
            return(false);
        }

        for (int col = 0; col < csvRow.Length; col++)
        {
            if (rowType == ECsvTableRowType.VariableType)
            {
                string type = CsvDataParser.RemoveStringBlankChar(csvRow[col]);
                if (string.IsNullOrEmpty(type))
                {
                    continue;
                }

                CsvGridData data = new CsvGridData(col, type, rowType);
                variableTypeList.Add(data);
            }

            if (rowType == ECsvTableRowType.VariableName)
            {
                string type = CsvDataParser.RemoveStringBlankChar(csvRow[col]);
                if (string.IsNullOrEmpty(type))
                {
                    continue;
                }

                CsvGridData data = new CsvGridData(col, type, rowType);
                variableNameList.Add(data);
            }
        }

        return(findVariableType && findVariableName);
    }
 public void BeforeTest()
 {
     _csvDataParser = new CsvDataParser <DummyImportRecord>();
 }
 public void Initialize()
 {
     csvDataParser = new CsvDataParser();
 }