Exemplo n.º 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 3:
            {
                m_LinkedHeavyCannon = reader.ReadItem() as HeavyShipCannon;
                goto case 2;
            }

            case 2:
            {
                m_LinkedCannon = reader.ReadItem() as LightShipCannon;
                goto case 1;
            }

            case 1:
            {
                m_Galleon = reader.ReadItem() as BaseGalleon;
                break;
            }
            }
        }
Exemplo n.º 2
0
 public BackpackEntry(Mobile from, LightShipCannon cannon)
     : base(2139)
 {
     this.m_cannon = cannon;
     this.m_from   = from;
 }
Exemplo n.º 3
0
        public bool TryAddCannon(Mobile from, Point3D pnt, ShipCannonDeed deed)
        {
            BaseCannon item;
            switch (deed.CannonType)
            {
                default:
                case CannonType.Light: item = new LightShipCannon(this); break;
                case CannonType.Heavy: item = new HeavyShipCannon(this); break;
            }

            return TryAddCannon(from, pnt, item, deed);
        }
Exemplo n.º 4
0
			public BackpackEntry(Mobile from, LightShipCannon cannon)
				: base(2139)
			{
				this.m_cannon = cannon;
				this.m_from = from;
			}
Exemplo n.º 5
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
			
			switch ( version )
			{
				case 3:
				{
					m_LinkedHeavyCannon = reader.ReadItem() as HeavyShipCannon;
					goto case 2;
				}	
				case 2:
				{
					m_LinkedCannon = reader.ReadItem() as LightShipCannon;
					goto case 1;
				}				
				
				case 1:
				{
					m_Galleon = reader.ReadItem() as BaseGalleon;
					break;
				}
			}
        }