/// <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 = _dailyRoutineEventPlaceholderResolver.GetPlaceholders(); exportPlaceholders.AddRange(_flexFieldPlaceholderResolver.GetExportTemplatePlaceholdersForType(TemplateType.ObjectNpc)); 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 List <ExportTemplatePlaceholder> GetExportTemplatePlaceholdersForType(TemplateType templateType) { List <ExportTemplatePlaceholder> exportPlaceholders = new List <ExportTemplatePlaceholder>(); if (templateType == TemplateType.ObjectNpc) { exportPlaceholders.Add(CreatePlaceHolder(Placeholder_DailyRoutine_Events)); exportPlaceholders.Add(CreatePlaceHolder(Placeholder_DailyRoutine_Functions)); } if (templateType == TemplateType.ObjectDailyRoutineEventList || templateType == TemplateType.ObjectNpc) { exportPlaceholders.Add(CreatePlaceHolder(Placeholder_DailyRoutine_Events_Start)); exportPlaceholders.Add(CreatePlaceHolder(Placeholder_DailyRoutine_Events_End)); } if (templateType == TemplateType.ObjectDailyRoutineFunctionList || templateType == TemplateType.ObjectNpc) { exportPlaceholders.Add(CreatePlaceHolder(Placeholder_DailyRoutine_Functions_Start)); exportPlaceholders.Add(CreatePlaceHolder(Placeholder_DailyRoutine_Functions_End)); exportPlaceholders.Add(CreatePlaceHolder(Placeholder_DailyRoutine_Function)); } if (templateType != TemplateType.ObjectDailyRoutineFunction) { exportPlaceholders.AddRange(new List <ExportTemplatePlaceholder>() { CreatePlaceHolder(Placeholder_HasDailyRoutine_Start), CreatePlaceHolder(Placeholder_HasDailyRoutine_End), CreatePlaceHolder(Placeholder_CurEvent_Index) }); exportPlaceholders.AddRange(_eventPlaceholderResolver.GetPlaceholders()); } exportPlaceholders.AddRange(_eventContentPlaceholderResolver.GetPlaceholders(templateType)); exportPlaceholders = exportPlaceholders.DistinctBy(p => p.Name).ToList(); return(exportPlaceholders); }