void ImportSheet(StringGrid sheet, AdvMacroManager macroManager)
        {
            sheet.InitLink();
            string sheetName = sheet.SheetName;

            if (AdvSheetParser.IsDisableSheetName(sheetName))
            {
                Debug.LogError(sheetName + " is invalid name");
                return;
            }

            if (AdvSheetParser.IsSettingsSheet(sheetName))
            {
                SettingList.Add(sheet);
            }
            else
            {
                macroManager.TryAddMacroData(sheet.SheetName, sheet);
            }
        }
Exemple #2
0
        public void MakeSettingImportData(AdvMacroManager macroManager)
        {
            foreach (var book in DataList)
            {
                foreach (var sheet in book.GridList)
                {
                    string sheetName = sheet.SheetName;
                    if (AdvSheetParser.IsDisableSheetName(sheetName))
                    {
                        Debug.LogError(sheetName + " is invalid name");
                        continue;
                    }

                    if (AdvSheetParser.IsSettingsSheet(sheetName))
                    {
                        settingList.Add(sheet);
                    }
                    else
                    {
                        macroManager.TryAddMacroData(sheet.SheetName, sheet);
                    }
                }
            }
        }