public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); mate = reader.ReadItem() as LinkedBook; }
public override void OnDoubleClick(Mobile from) { if (Items.Count == 0) { LinkedBook bookA = new LinkedBook(); LinkedBook bookB = new LinkedBook(); bookA.Mate = bookB; bookB.Mate = bookA; bookA.Author = from.Name; bookB.Author = from.Name; bookA.Title = string.Format("{0}'s Master Book", from.Name); bookB.Title = string.Format("{0}'s Copy Book", from.Name); DropItem(bookA); DropItem(bookB); } base.OnDoubleClick(from); }