public void AssignNarratorForRemainingBlocksInBook(BookScript book)
        {
            foreach (var block in book.GetScriptBlocks().Where(b => b.CharacterIsUnclear()))
            {
                block.SetStandardCharacter(book.BookId, CharacterVerseData.StandardCharacter.Narrator);
                block.UserConfirmed = true;

                if (block.MultiBlockQuote != MultiBlockQuote.Continuation)
                {
                    m_assignedBlocks++;
                    OnAssignedBlocksIncremented();
                }
            }
        }
Exemple #2
0
        private void Assign(BookScript bookScript, ScrVers versification, bool setDefaultForMultipleChoiceCharacters, bool overwriteUserConfirmed)
        {
            var bookNum = BCVRef.BookToNumber(bookScript.BookId);

            foreach (Block block in bookScript.GetScriptBlocks().Where(b => !b.CharacterIsStandard))
            {
                if (!block.UserConfirmed || overwriteUserConfirmed)
                {
                    block.SetCharacterAndDelivery(m_cvInfo.GetCharacters(bookScript.BookId, block.ChapterNumber, block.InitialStartVerseNumber, block.InitialEndVerseNumber, block.LastVerse, versification));
                }
                else if (setDefaultForMultipleChoiceCharacters)
                {
                    block.UseDefaultForMultipleChoiceCharacter(() => block.GetMatchingCharacter(m_cvInfo, bookNum, versification));
                }
            }

            bookScript.CleanUpMultiBlockQuotes(versification);
        }