/// <summary>
        /// Builds the action content
        /// </summary>
        /// <param name="actionRenderer">Action Renderer</param>
        /// <param name="actionNode">Action Node</param>
        /// <param name="data">Dialog data</param>
        /// <param name="flexFieldObject">Flex field object to which the dialog belongs</param>
        /// <returns>Action content</returns>
        private async Task <string> BuildActionContent(IActionRenderer actionRenderer, ActionNode actionNode, ExportDialogData data, FlexFieldObject flexFieldObject)
        {
            if (actionRenderer == null)
            {
                return(string.Empty);
            }

            return(await actionRenderer.BuildActionElement(actionNode, data, _project, _errorCollection, flexFieldObject, _exportSettings));
        }
Beispiel #2
0
        /// <summary>
        /// Builds the action content
        /// </summary>
        /// <param name="actionNode">Action Node</param>
        /// <param name="data">Dialog data</param>
        /// <param name="npc">Npc to which the dialog belongs</param>
        /// <returns>Action content</returns>
        private async Task <string> BuildActionContent(ActionNode actionNode, ExportDialogData data, KortistoNpc npc)
        {
            IActionRenderer actionRenderer = GetActionRenderForNode(actionNode);

            if (actionRenderer == null)
            {
                return(string.Empty);
            }

            return(await actionRenderer.BuildActionElement(actionNode, data, _project, _errorCollection, npc, _exportSettings));
        }