/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> public NpcInventoryExportTemplatePlaceholderResolver(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory) : base(localizerFactory.Create(typeof(NpcInventoryExportTemplatePlaceholderResolver))) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _itemPlaceholderResolver = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, _cachedDbAccess, languageKeyGenerator, localizerFactory, FlexField_Item_Prefix); }
/// <summary> /// Constructor /// </summary> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="isTeleport">true if the movement is a teleporation, else false</param> /// <param name="isPlayer">true if the player is moved, else false</param> /// <param name="isPickedNpc">true if the npc was picked, else false</param> public BaseMoveNpcActionRenderer(IExportCachedDbAccess cachedDbAccess, bool isTeleport, bool isPlayer, bool isPickedNpc) { _cachedDbAccess = cachedDbAccess; _isTeleport = isTeleport; _isPlayer = isPlayer; _isPickedNpc = isPickedNpc; }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="exportCachedDbAccess">Export Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="placeholderPrefix">Placeholder Prefix</param> public FlexFieldExportTemplatePlaceholderResolver(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess exportCachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory, string placeholderPrefix = FlexField_Default_Placeholder_Prefix) : base(localizerFactory.Create(typeof(FlexFieldExportTemplatePlaceholderResolver))) { _defaultTemplateProvider = defaultTemplateProvider; _exportCachedDbAccess = exportCachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _placeholderPrefix = placeholderPrefix; }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="isPlayer">true if the condition resolver is for the player, else false</param> /// <param name="isLearned">true if the condition resolver is for having the skill learned, else false</param> public LearnedSkillConditionResolver(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory, bool isPlayer, bool isLearned) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _skillPlaceholderResolver = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, FlexField_Skill_Prefix); _isPlayer = isPlayer; _isLearned = isLearned; }
/// <summary> /// Constructor /// </summary> /// <param name="exportCachedDbAccess">Export cached Db access</param> /// <param name="exportSettings">Export Settings</param> /// <param name="errorCollection">Error Collection</param> /// <param name="languageKeyGenerator">Language key generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="isPlayerLine">true if its a player line, else false</param> public ScribanTextLineRenderer(IExportCachedDbAccess exportCachedDbAccess, ExportSettings exportSettings, ExportPlaceholderErrorCollection errorCollection, IScribanLanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory, bool isPlayerLine) : base(errorCollection, exportSettings, localizerFactory) { _exportCachedDbAccess = exportCachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _isPlayerLine = isPlayerLine; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="errorCollection">Error collection</param> public ExportSnippetFunctionPipeRenderer(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ExportPlaceholderErrorCollection errorCollection) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _errorCollection = errorCollection; }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> public ShowFloatingTextAboveObjectActionRenderer(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _localizer = localizerFactory.Create(typeof(ShowFloatingTextAboveObjectActionRenderer)); _flexFieldPlaceholderResolver = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, GetFlexFieldPrefix()); }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="dailyRoutineEventPlaceholderResolver">Daily Rotuine event placeholder resolver</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="isDisable">true if the event is for a disable action</param> public SetDailyRoutineEventState(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, IDailyRoutineEventPlaceholderResolver dailyRoutineEventPlaceholderResolver, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory, bool isDisable) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _dailyRoutineEventPlaceholderResolver = dailyRoutineEventPlaceholderResolver; _flexFieldPlaceholderResolver = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, NpcPlaceholderPrefix); _isDisable = isDisable; }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="isPlayer">true if the renderer is for the player, else false</param> public PlayAnimationActionRenderer(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory, bool isPlayer) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _localizer = localizerFactory.Create(typeof(PlayAnimationActionRenderer)); _isPlayer = isPlayer; _flexFieldPlaceholderResolver = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, FlexField_Npc_Prefix); }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="isPlayer">true if the condition resolver is for the player, else false</param> public InventoryConditionResolver(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory, bool isPlayer) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _localizer = localizerFactory.Create(typeof(InventoryConditionResolver)); _itemPlaceholderResolver = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, FlexField_Item_Prefix); _isPlayer = isPlayer; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="errorCollection">Error collection</param> public DailyRoutineEventFunctionRenderer(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ExportPlaceholderErrorCollection errorCollection) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _errorCollection = errorCollection; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="cachedDbAccess">Gecachter Datenzugriff</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="localizerFactory">Localizer Factory</param> public DailyRoutineFunctionListValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess cachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _cachedDbAccess = cachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="errorCollection">Error collection</param> /// <param name="exportObjectData">Export object data</param> public DialogFunctionRenderer(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ExportPlaceholderErrorCollection errorCollection, ExportObjectData exportObjectData) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _errorCollection = errorCollection; _exportObjectData = exportObjectData; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="exportSnippetFunctionRenderer">Export snippet function renderer</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="localizerFactory">Localizer Factory</param> public ExportSnippetValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, IExportSnippetFunctionRenderer exportSnippetFunctionRenderer, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _exportSnippetFunctionRenderer = exportSnippetFunctionRenderer; _defaultTemplateProvider = defaultTemplateProvider; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="languageKeyGenerator">Language key generator</param> /// <param name="localizerFactory">Localizer Factory</param> public BaseFlexFieldValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IScribanLanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _languageKeyGenerator = languageKeyGenerator; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="cachedDbAccess">Cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="dailyRoutineFunctionRenderer">Daily routine function renderer</param> /// <param name="localizerFactory">Localizer factory</param> public LegacyDailyRoutineEventContentPlaceholderResolver(IExportCachedDbAccess cachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IDailyRoutineFunctionRenderer dailyRoutineFunctionRenderer, IStringLocalizerFactory localizerFactory) { _cachedDbAccess = cachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _dailyRoutineFunctionRenderer = dailyRoutineFunctionRenderer; _renderedEvents = new Dictionary <string, List <DailyRoutineFunction> >(); _localizer = localizerFactory.Create(typeof(LegacyDailyRoutineEventContentPlaceholderResolver)); }
/// <summary> /// Constructor /// </summary> /// <param name="exportCachedDbAccess">Export cached Db access</param> /// <param name="exportSettings">Export Settings</param> /// <param name="errorCollection">Error Collection</param> /// <param name="languageKeyGenerator">Language key generator</param> /// <param name="conditionRenderer">Condition Renderer</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="project">Project</param> public ScribanChoiceRenderer(IExportCachedDbAccess exportCachedDbAccess, ExportSettings exportSettings, ExportPlaceholderErrorCollection errorCollection, IScribanLanguageKeyGenerator languageKeyGenerator, IConditionRenderer conditionRenderer, IStringLocalizerFactory localizerFactory, GoNorthProject project) : base(errorCollection, exportSettings, localizerFactory) { _exportCachedDbAccess = exportCachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _conditionRenderer = conditionRenderer; _project = project; }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="eventPlaceholderResolver">Daily routine event placeholder resolver</param> /// <param name="eventContentPlaceholderResolver">Daily routine event content palceholder resolver</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> public NpcDailyRoutineExportPlaceholderResolver(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, IDailyRoutineEventPlaceholderResolver eventPlaceholderResolver, IDailyRoutineEventContentPlaceholderResolver eventContentPlaceholderResolver, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory) : base(localizerFactory.Create(typeof(NpcDailyRoutineExportPlaceholderResolver))) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _eventPlaceholderResolver = eventPlaceholderResolver; _eventContentPlaceholderResolver = eventContentPlaceholderResolver; _languageKeyGenerator = languageKeyGenerator; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="cachedDbAccess">Gecachter Datenzugriff</param> /// <param name="stateMachineFunctionNameGenerator">State machine function name generator</param> /// <param name="stateMachineFunctionRenderer">State machine function renderer</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="localizerFactory">Localizer Factory</param> public NpcStateMachineExportValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess cachedDbAccess, IStateMachineFunctionNameGenerator stateMachineFunctionNameGenerator, IStateMachineFunctionRenderer stateMachineFunctionRenderer, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _cachedDbAccess = cachedDbAccess; _stateMachineFunctionNameGenerator = stateMachineFunctionNameGenerator; _stateMachineFunctionRenderer = stateMachineFunctionRenderer; _defaultTemplateProvider = defaultTemplateProvider; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="snippetFunctionRenderer">Snippet function renderer</param> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> public ExportSnippetTemplatePlaceholderResolver(IExportSnippetFunctionRenderer snippetFunctionRenderer, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory) : base(localizerFactory.Create(typeof(ExportSnippetTemplatePlaceholderResolver))) { _snippetFunctionRenderer = snippetFunctionRenderer; _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _renderedNodeGraphs = new Dictionary <string, ExportNodeGraphRenderResult>(); }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="isRemoval">True if the action is for a removal, else false</param> public InventoryActionChooseNpcRenderer(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory, bool isRemoval) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _localizer = localizerFactory.Create(typeof(InventoryActionChooseNpcRenderer)); _flexFieldPlaceholderResolverItem = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, FlexField_Item_Prefix); _flexFieldPlaceholderResolverNpc = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, FlexField_Npc_Prefix); _isRemoval = isRemoval; }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="conditionRenderer">Condition Renderer</param> /// <param name="stringLocalizerFactory">String Localizer Factor</param> public ExportDialogRenderer(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IConditionRenderer conditionRenderer, IStringLocalizerFactory stringLocalizerFactory) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _conditionRenderer = conditionRenderer; _stringLocalizerFactory = stringLocalizerFactory; _localizer = _stringLocalizerFactory.Create(typeof(ExportDialogRenderer)); _stepRenderers = new List <IExportDialogStepRenderer>(); }
/// <summary> /// Constructor /// </summary> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="taleDbAccess">Dialog Db Access</param> /// <param name="dialogParser">Dialog Parser</param> /// <param name="dialogFunctionGenerator">Dialog Function Generator</param> /// <param name="dialogRenderer">Dialog Renderer</param> /// <param name="localizerFactory">Localizer Factory</param> public DialogExportTemplatePlaceholderResolver(IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, ITaleDbAccess taleDbAccess, IExportDialogParser dialogParser, IExportDialogFunctionGenerator dialogFunctionGenerator, IExportDialogRenderer dialogRenderer, IStringLocalizerFactory localizerFactory) : base(localizerFactory.Create(typeof(DialogExportTemplatePlaceholderResolver))) { _cachedDbAccess = cachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _taleDbAccess = taleDbAccess; _dialogParser = dialogParser; _dialogFunctionGenerator = dialogFunctionGenerator; _dialogRenderer = dialogRenderer; }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="conditionRenderer">Condition Renderer</param> /// <param name="dailyRoutineEventPlaceholderResolver">Daily routine event placeholder resolver</param> /// <param name="stringLocalizerFactory">String Localizer Factor</param> public NodeGraphBaseRenderer(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IConditionRenderer conditionRenderer, IDailyRoutineEventPlaceholderResolver dailyRoutineEventPlaceholderResolver, IStringLocalizerFactory stringLocalizerFactory) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _languageKeyGenerator = languageKeyGenerator; _conditionRenderer = conditionRenderer; _dailyRoutineEventPlaceholderResolver = dailyRoutineEventPlaceholderResolver; _stringLocalizerFactory = stringLocalizerFactory; _stepRenderers = new List <IExportDialogStepRenderer>(); }
/// <summary> /// Constructor /// </summary> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="cachedDbAccess">Cached Db Access</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="isTeleport">true if the movement is a teleporation, else false</param> /// <param name="isPickedNpc">true if the npc was picked, else false</param> public MoveNpcToNpcActionRenderer(ICachedExportDefaultTemplateProvider defaultTemplateProvider, IExportCachedDbAccess cachedDbAccess, ILanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory, bool isTeleport, bool isPickedNpc) { _defaultTemplateProvider = defaultTemplateProvider; _cachedDbAccess = cachedDbAccess; _localizer = localizerFactory.Create(typeof(MoveNpcActionRenderer)); _flexFieldPlaceholderResolver = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, FlexField_Npc_Prefix); _flexFieldTargetPlaceholderResolver = new FlexFieldExportTemplatePlaceholderResolver(defaultTemplateProvider, cachedDbAccess, languageKeyGenerator, localizerFactory, FlexField_TargetNpc_Prefix); _isTeleport = isTeleport; _isPickedNpc = isPickedNpc; }
/// <summary> /// Constructor /// </summary> /// <param name="exportCachedDbAccess">Export cached Db access</param> /// <param name="errorCollection">Error Collection</param> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="dailyRoutineFunctionNameGenerator">Daily routine function name generator</param> /// <param name="scribanLanguageKeyGenerator">Scriban Language key generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="exportSettings">Export Settings</param> /// <param name="project">Project</param> public ExportReferenceRenderer(IExportCachedDbAccess exportCachedDbAccess, ExportPlaceholderErrorCollection errorCollection, ICachedExportDefaultTemplateProvider defaultTemplateProvider, IDailyRoutineFunctionNameGenerator dailyRoutineFunctionNameGenerator, IScribanLanguageKeyGenerator scribanLanguageKeyGenerator, IStringLocalizerFactory localizerFactory, ExportSettings exportSettings, GoNorthProject project) { _errorCollection = errorCollection; _defaultTemplateProvider = defaultTemplateProvider; _exportCachedDbAccess = exportCachedDbAccess; _localizer = localizerFactory.Create(typeof(ExportReferenceRenderer)); _project = project; _renderers = new Dictionary <ExportTemplateRenderingEngine, IReferenceStepRenderer> { { ExportTemplateRenderingEngine.Scriban, new ScribanReferenceStepRenderer(exportCachedDbAccess, dailyRoutineFunctionNameGenerator, exportSettings, errorCollection, scribanLanguageKeyGenerator, localizerFactory) } }; }
/// <summary> /// Constructor /// </summary> /// <param name="templatePlaceholderResolver">Template placeholder resolver</param> /// <param name="exportCachedDbAccess">Export cached database access</param> /// <param name="defaultTemplateProvider">Default template provider</param> /// <param name="taleDbAccess">Dialog database access</param> /// <param name="languageKeyGenerator">Language key generator</param> /// <param name="dialogParser">Dialog Parser</param> /// <param name="dialogFunctionGenerator">Dialog Function Generator</param> /// <param name="dialogRenderer">Dialog Renderer</param> /// <param name="localizerFactory">Localizer Factory</param> public DialogValueCollector(IExportTemplatePlaceholderResolver templatePlaceholderResolver, IExportCachedDbAccess exportCachedDbAccess, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ITaleDbAccess taleDbAccess, IScribanLanguageKeyGenerator languageKeyGenerator, IExportDialogParser dialogParser, IExportDialogFunctionGenerator dialogFunctionGenerator, IExportDialogRenderer dialogRenderer, IStringLocalizerFactory localizerFactory) { _templatePlaceholderResolver = templatePlaceholderResolver; _exportCachedDbAccess = exportCachedDbAccess; _defaultTemplateProvider = defaultTemplateProvider; _taleDbAccess = taleDbAccess; _languageKeyGenerator = languageKeyGenerator; _dialogParser = dialogParser; _dialogFunctionGenerator = dialogFunctionGenerator; _dialogRenderer = dialogRenderer; _localizerFactory = localizerFactory; }
/// <summary> /// Constructor /// </summary> /// <param name="exportCachedDbAccess">Export cached Db access</param> /// <param name="errorCollection">Error Collection</param> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="conditionRenderer">Condition Renderer</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="exportSettings">Export Settings</param> /// <param name="project">Project</param> public ExportDialogConditionRenderer(IExportCachedDbAccess exportCachedDbAccess, ExportPlaceholderErrorCollection errorCollection, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ILanguageKeyGenerator languageKeyGenerator, IConditionRenderer conditionRenderer, IStringLocalizerFactory localizerFactory, ExportSettings exportSettings, GoNorthProject project) { _errorCollection = errorCollection; _defaultTemplateProvider = defaultTemplateProvider; _conditionRenderer = conditionRenderer; _exportSettings = exportSettings; _localizer = localizerFactory.Create(typeof(ExportDialogConditionRenderer)); _project = project; _renderers = new Dictionary <ExportTemplateRenderingEngine, IConditionStepRenderer> { { ExportTemplateRenderingEngine.Legacy, new LegacyConditionStepRenderer(languageKeyGenerator, exportSettings, errorCollection, conditionRenderer, localizerFactory, project) }, { ExportTemplateRenderingEngine.Scriban, new ScribanConditionStepRenderer(exportCachedDbAccess, exportSettings, errorCollection, conditionRenderer, localizerFactory, project) } }; }
/// <summary> /// Constructor /// </summary> /// <param name="exportCachedDbAccess">Export cached Db access</param> /// <param name="errorCollection">Error Collection</param> /// <param name="defaultTemplateProvider">Default Template Provider</param> /// <param name="languageKeyGenerator">Language Key Generator</param> /// <param name="scribanLanguageKeyGenerator">Scriban Language key generator</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="exportSettings">Export Settings</param> /// <param name="project">Project</param> /// <param name="isPlayerLine">true if its a player line, else false</param> public ExportDialogTextLineRenderer(IExportCachedDbAccess exportCachedDbAccess, ExportPlaceholderErrorCollection errorCollection, ICachedExportDefaultTemplateProvider defaultTemplateProvider, ILanguageKeyGenerator languageKeyGenerator, IScribanLanguageKeyGenerator scribanLanguageKeyGenerator, IStringLocalizerFactory localizerFactory, ExportSettings exportSettings, GoNorthProject project, bool isPlayerLine) { _errorCollection = errorCollection; _defaultTemplateProvider = defaultTemplateProvider; _localizer = localizerFactory.Create(typeof(ExportDialogTextLineRenderer)); _project = project; _isPlayerLine = isPlayerLine; _renderers = new Dictionary <ExportTemplateRenderingEngine, ITextLineRenderer> { { ExportTemplateRenderingEngine.Legacy, new LegacyTextLineRenderer(languageKeyGenerator, exportSettings, errorCollection, localizerFactory, isPlayerLine) }, { ExportTemplateRenderingEngine.Scriban, new ScribanTextLineRenderer(exportCachedDbAccess, exportSettings, errorCollection, scribanLanguageKeyGenerator, localizerFactory, isPlayerLine) } }; }
/// <summary> /// Loads the npc /// </summary> /// <param name="cachedDbAccess">Cached database access</param> /// <param name="project">Project</param> /// <param name="flexFieldObject">Flex field object to which the dialog belongs</param> /// <param name="errorCollection">Export settings</param> /// <param name="isPlayer">true if the condition resolver is for the player, else false</param> /// <returns>Loaded npc, null if no npc could be found</returns> public static async Task <KortistoNpc> GetExportNpc(IExportCachedDbAccess cachedDbAccess, GoNorthProject project, FlexFieldObject flexFieldObject, ExportPlaceholderErrorCollection errorCollection, bool isPlayer) { if (isPlayer) { flexFieldObject = await cachedDbAccess.GetPlayerNpc(project.Id); if (flexFieldObject == null) { errorCollection.AddNoPlayerNpcExistsError(); return(null); } } return(flexFieldObject as KortistoNpc); }