Esempio n. 1
0
        public IGrabableItem CreateScrool(ScrollItemData scroll)
        {
            scroll.Processed = true;
            var initializator = new ScrollInitializer
            {
                Text = scroll.Text
            };

            return(builder.Factories.ScrollFactories[currentDescriptor.InCategoryIndex].Create(initializator));
        }
Esempio n. 2
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);
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
 public ItemData CreateScrool(ScrollItemData scroll)
 {
     currentTile.GrabableItems.Add(scroll);
     return(scroll);
 }
Esempio n. 5
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;
        }
Esempio n. 6
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;
        }