static void ImportSpecialSceneSettings() { var settings = new BibaSpecialSceneSettings(); var timedEntries = GoogleSpreadsheetImporter.GetListEntries(TIMEDSCENE_SPREADSHEET_NAME, WORKSHEET_NAME); if (timedEntries == null) { return; } ParseTimedSceneSettings(timedEntries, ref settings); var localeBasedEntries = GoogleSpreadsheetImporter.GetListEntries(LOCALESCENE_SPREADSHEET_NAME, WORKSHEET_NAME); if (localeBasedEntries == null) { return; } ParseLocaleBasedSceneSettings(localeBasedEntries, ref settings); var jsonDataService = new JSONDataService(); jsonDataService.WriteToDisk <BibaSpecialSceneSettings>(settings, BibaEditorConstants.GetContentOutputPath(BibaContentConstants.SPECIAL_SCENE_SETTINGS_FILE)); }
static void ParseSettingsForSheet(string workSheetName) { var entries = GoogleSpreadsheetImporter.GetListEntries(LOCALIZATION_SETTINGS_SPREADSHEET_NAME, workSheetName); if (entries == null) { return; } ParseLocalizationSettings(entries); }
static void ImportSeasonalAchievementSettings() { var entries = GoogleSpreadsheetImporter.GetListEntries(ACHIEVEMENT_SETTINGS_SPREADSHEET_NAME, SEASONAL_ACHIEVEMENT_SETTINGS_WORKSHEET_NAME); if (entries == null) { return; } ParseForSeasonalAchievementSettings(entries); }
static void ImportEventSheet(string worksheetName, bool worksheetNullable = false) { var entries = GoogleSpreadsheetImporter.GetListEntries(EVENT_SETTINGS_SPREADSHEET_NAME, worksheetName, worksheetNullable); if (entries == null) { return; } foreach (ListEntry row in entries) { var eventType = row.Elements[1].Value; if (!string.IsNullOrEmpty(eventType) && EVENT_ACTION_DICT.ContainsKey(eventType)) { EVENT_ACTION_DICT [eventType].Invoke(GoogleSpreadsheetImporter.GetListEntryDict(row)); } } }
static void ImportConstSheet(string worksheetName, string className, string nameSpace = BIBAGAME_NAMESPACE) { var entries = GoogleSpreadsheetImporter.GetListEntries(EVENT_SETTINGS_SPREADSHEET_NAME, worksheetName); var outputPath = MODEL_PROJECT_FOLDER_PATH + className + ".cs"; var eventStrings = new List <string> (); foreach (ListEntry row in entries) { for (int i = 0; i < row.Elements.Count; i++) { if (!string.IsNullOrEmpty(row.Elements[i].Value)) { eventStrings.Add(row.Elements[i].Value); } } } HelperMethods.WriteConstStringFile(nameSpace, className, eventStrings, outputPath); }