コード例 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            mate = reader.ReadItem() as LinkedBook;
        }
コード例 #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            mate = reader.ReadItem() as LinkedBook;
        }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }