public IGrabableItem CreateScrool(ScrollItemData scroll) { scroll.Processed = true; var initializator = new ScrollInitializer { Text = scroll.Text }; return(builder.Factories.ScrollFactories[currentDescriptor.InCategoryIndex].Create(initializator)); }
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); }
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); }
public ItemData CreateScrool(ScrollItemData scroll) { currentTile.GrabableItems.Add(scroll); return(scroll); }
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; }
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; }