Server.Multis.BaseHouse.IsInside C# (CSharp) Méthode

IsInside() public méthode

public IsInside ( Item item ) : bool
item Item
Résultat bool
		public bool IsInside( Item item )
		{
			if ( item == null || item.Deleted || item.Map != this.Map )
				return false;

			return IsInside( item.Location, item.ItemData.Height );
		}

Same methods

BaseHouse::IsInside ( Mobile m ) : bool
BaseHouse::IsInside ( Point3D p, int height ) : bool

Usage Example

            private static void West(Item item, Mobile from, BaseHouse house)
            {
                Point3D m_PointDest = new Point3D(item.X - 1, item.Y, item.Z);

                if (!SpellHelper.CheckMulti(m_PointDest, from.Map))
                    from.SendMessage("You cannot move it west any further.");
                else if (house.IsInside(new Point3D(item.X - 1, item.Y, item.Z), item.ItemData.Height))
                    item.X = (item.X - 1);
                else
                    from.SendMessage("You cannot move it west any further.");
            }