/// <summary> /// Returns the Export Template Placeholders for a Template Type /// </summary> /// <param name="templateType">Template Type</param> /// <returns>Export Template Placeholder</returns> public override List <ExportTemplatePlaceholder> GetExportTemplatePlaceholdersForType(TemplateType templateType) { List <ExportTemplatePlaceholder> exportPlaceholders = new List <ExportTemplatePlaceholder>(); if (templateType != TemplateType.ObjectDailyRoutineFunctionList) { return(exportPlaceholders); } IStringLocalizer localizer = _localizerFactory.Create(typeof(DailyRoutineFunctionListValueCollector)); exportPlaceholders.Add(new ExportTemplatePlaceholder(ExportConstants.ScribanDailyRoutineFunctionListObjectKey, localizer["PlaceholderDesc_Functions", CurrentFunctionObjectKey])); exportPlaceholders.AddRange(ScribanPlaceholderGenerator.GetPlaceholdersForObject <ScribanExportDailyRoutineFunction>(_localizerFactory, CurrentFunctionObjectKey)); exportPlaceholders.AddRange(DailyRoutineEventFunctionRenderer.GetPlaceholders(_localizerFactory)); return(exportPlaceholders); }
/// <summary> /// Returns the Export Template Placeholders for a Template Type /// </summary> /// <param name="templateType">Template Type</param> /// <returns>Export Template Placeholder</returns> public override List <ExportTemplatePlaceholder> GetExportTemplatePlaceholdersForType(TemplateType templateType) { List <ExportTemplatePlaceholder> exportPlaceholders = new List <ExportTemplatePlaceholder>(); if (templateType != TemplateType.ObjectNpc) { return(exportPlaceholders); } exportPlaceholders.AddRange(ScribanPlaceholderGenerator.GetPlaceholdersForObject <ScribanExportDailyRoutine>(_localizerFactory, ExportConstants.ScribanDailyRoutineObjectKey)); exportPlaceholders.AddRange(ScribanPlaceholderGenerator.GetPlaceholdersForObject <ScribanExportDailyRoutineEvent>(_localizerFactory, ExportConstants.DailyRoutineEventObjectKey)); exportPlaceholders.AddRange(DailyRoutineEventListRenderer.GetPlaceholders(_localizerFactory)); exportPlaceholders.AddRange(DailyRoutineEventFunctionRenderer.GetPlaceholders(_localizerFactory)); exportPlaceholders.AddRange(DailyRoutineEventFunctionListRenderer.GetPlaceholders(_localizerFactory)); return(exportPlaceholders); }