/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="exportTemplateDbAccess">Export Template Db Access</param> /// <param name="exportSettingsDbAccess">Export Settings Db Access</param> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="npcTemplateDbAccess">Npc Template Db Access</param> /// <param name="dialogDbAccess">Dialog Db Access</param> /// <param name="itemDbAccess">Item Db Access</param> /// <param name="itemTemplateDbAccess">Item Template Db Access</param> /// <param name="skillDbAccess">Skill Db Access</param> /// <param name="skillTemplateDbAccess">Skill Template Db Access</param> /// <param name="templatePlaceholderResolver">Template Placeholder Resolver</param> /// <param name="dialogFunctionDbAccess">Dialog Function Db Access</param> /// <param name="dialogFunctionGenerationConditionProvider">Dialog Function Generation Condition Provider</param> /// <param name="languageKeyDbAccess">Language Key Db Access</param> /// <param name="timelineService">Timeline Service</param> /// <param name="userManager">User Manager</param> /// <param name="logger">Logger</param> /// <param name="localizerFactory">Localizer Factory</param> public ExportApiController(IExportDefaultTemplateProvider defaultTemplateProvider, IExportTemplateDbAccess exportTemplateDbAccess, IExportSettingsDbAccess exportSettingsDbAccess, IProjectDbAccess projectDbAccess, IKortistoNpcDbAccess npcDbAccess, IKortistoNpcTemplateDbAccess npcTemplateDbAccess, ITaleDbAccess dialogDbAccess, IStyrItemDbAccess itemDbAccess, IStyrItemTemplateDbAccess itemTemplateDbAccess, IEvneSkillDbAccess skillDbAccess, IEvneSkillTemplateDbAccess skillTemplateDbAccess, IExportTemplatePlaceholderResolver templatePlaceholderResolver, IDialogFunctionGenerationConditionDbAccess dialogFunctionDbAccess, IDialogFunctionGenerationConditionProvider dialogFunctionGenerationConditionProvider, ILanguageKeyDbAccess languageKeyDbAccess, ITimelineService timelineService, UserManager <GoNorthUser> userManager, ILogger <ExportApiController> logger, IStringLocalizerFactory localizerFactory) { _defaultTemplateProvider = defaultTemplateProvider; _exportTemplateDbAccess = exportTemplateDbAccess; _exportSettingsDbAccess = exportSettingsDbAccess; _projectDbAccess = projectDbAccess; _npcDbAccess = npcDbAccess; _npcTemplateDbAccess = npcTemplateDbAccess; _dialogDbAccess = dialogDbAccess; _itemDbAccess = itemDbAccess; _itemTemplateDbAccess = itemTemplateDbAccess; _skillDbAccess = skillDbAccess; _skillTemplateDbAccess = skillTemplateDbAccess; _templatePlaceholderResolver = templatePlaceholderResolver; _dialogFunctionDbAccess = dialogFunctionDbAccess; _dialogFunctionGenerationConditionProvider = dialogFunctionGenerationConditionProvider; _languageKeyDbAccess = languageKeyDbAccess; _timelineService = timelineService; _userManager = userManager; _logger = logger; _localizer = localizerFactory.Create(this.GetType()); _exporters = new Dictionary <string, IObjectExporter>(); _exporters.Add("script", new ScriptExporter(templatePlaceholderResolver, projectDbAccess, exportSettingsDbAccess)); _exporters.Add("json", new JsonExporter()); _exporters.Add("languagefile", new LanguageExporter(templatePlaceholderResolver, defaultTemplateProvider, projectDbAccess, exportSettingsDbAccess)); }
/// <summary> /// Constructor /// </summary> /// <param name="dialogFunctionGenerationConditionProvider">Condition Provider</param> /// <param name="functionNameGenerator">Dialog Function Name Generaotr</param> public ExportDialogFunctionGenerator(IDialogFunctionGenerationConditionProvider dialogFunctionGenerationConditionProvider, IExportDialogFunctionNameGenerator functionNameGenerator) : base(dialogFunctionGenerationConditionProvider) { _functionNameGenerator = functionNameGenerator; }
/// <summary> /// Constructor /// </summary> /// <param name="dialogFunctionGenerationConditionProvider">Condition Provider</param> /// <param name="functionNameGenerator">Dialog Function Name Generaotr</param> public ExportSnippetNodeGraphFunctionGenerator(IDialogFunctionGenerationConditionProvider dialogFunctionGenerationConditionProvider, IExportSnippetFunctionNameGenerator functionNameGenerator) : base(dialogFunctionGenerationConditionProvider) { _functionNameGenerator = functionNameGenerator; }
/// <summary> /// Constructor /// </summary> /// <param name="dialogFunctionGenerationConditionProvider">Condition Provider</param> /// <param name="functionNameGenerator">Dialog Function Name Generaotr</param> public DailyRoutineNodeGraphFunctionGenerator(IDialogFunctionGenerationConditionProvider dialogFunctionGenerationConditionProvider, IDailyRoutineFunctionNameGenerator functionNameGenerator) : base(dialogFunctionGenerationConditionProvider) { _functionNameGenerator = functionNameGenerator; }
/// <summary> /// Constructor /// </summary> /// <param name="dialogFunctionGenerationConditionProvider">Condition Provider</param> /// <param name="functionNameGenerator">Dialog Function Name Generaotr</param> public StateMachineNodeGraphFunctionGenerator(IDialogFunctionGenerationConditionProvider dialogFunctionGenerationConditionProvider, IStateMachineFunctionNameGenerator functionNameGenerator) : base(dialogFunctionGenerationConditionProvider) { _functionNameGenerator = functionNameGenerator; }
/// <summary> /// Constructor /// </summary> /// <param name="dialogFunctionGenerationConditionProvider">Condition Provider</param> public ExportGraphFunctionBaseGenerator(IDialogFunctionGenerationConditionProvider dialogFunctionGenerationConditionProvider) { _dialogFunctionGenerationConditionProvider = dialogFunctionGenerationConditionProvider; }