Example #1
0
        private void ConnectText(TextObject text, BBeB book)
        {
            UInt32Tag linkTag = (UInt32Tag)text.FindFirstTag(TagId.Link);

            if (linkTag == null)
            {
                throw new InvalidBookException("Can't find link for block " + text.ID);
            }

            BBeBObject LinkObj = book.FindObject((ushort)linkTag.Value);

            if (LinkObj == null)
            {
                throw new InvalidBookException("Can't find object id " + linkTag.Value);
            }
        }