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); } }
internal bool TryConvertToCsv(int version) { foreach (var sheet in sheets.List) { if (AdvSheetParser.IsSettingsSheet(sheet.Grid.SheetName)) { SettingsSheets.Add(sheet.Grid); CsvList.Add(new CsvInfo(sheet.Grid, this.Name + "/Settings/" + sheet.Key)); } else { ScenarioSheets.Add(sheet.Grid); CsvList.Add(new CsvInfo(sheet.Grid, this.Name + "/Scenario/" + sheet.Key)); } } //シナリオ設定シートは個別にコンバート CsvList.Add(new CsvInfo(MakeScenarioSettingGrid(version), this.Name + "/Settings/" + AdvSheetParser.SheetNameScenario)); return(true); ///起動用CSVをコンバート // csvInfoList.Add(ConvertBootSetting(version)); }
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); } } } }