예제 #1
0
파일: Items.cs 프로젝트: kumaya1109/ServUO
 public override void OnDoubleClick(Mobile from)
 {
     if (from.Backpack != null && from.InRange(this.Location, 3))
     {
         if (Apple == null || Apple.Deleted)
         {
             Apple = new ShadowguardApple(Encounter, this);
             from.Backpack.DropItem(Apple);
         }
     }
 }
예제 #2
0
파일: Items.cs 프로젝트: kumaya1109/ServUO
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
                Apple = reader.ReadItem() as ShadowguardApple;
                goto case 0;

            case 0:
                Foilage = reader.ReadItem() as ShadowguardCypressFoilage;
                break;
            }

            if (Foilage != null)
            {
                Foilage.Tree = this;
            }
        }