Example #1
0
        private ScrollItemData ParseScrollData(BinaryReader r)
        {
            var s = new ScrollItemData();
            s.NextObjectID = r.ReadUInt16();

            s.ReferredTextIndex = r.ReadUInt16() & nineBitsMask;
            s.Text = Data.Texts[s.ReferredTextIndex].Text.Replace('|' , ' '); 
            return s;
        }
Example #2
0
        private IList<ScrollItemData> ReadScrollsData(BinaryReader r)
        {
            var c = new ScrollItemData[Data.ScrollsCount];

            for (int i = 0; i < Data.ScrollsCount; i++)
                c[i] = ParseScrollData(r);

            return c;
        }