Server.Mobiles.BaseVendor.CheckVendorAccess C# (CSharp) Méthode

CheckVendorAccess() public méthode

public CheckVendorAccess ( Mobile from ) : bool
from Mobile
Résultat bool
        public virtual bool CheckVendorAccess( Mobile from )
        {
            GuardedRegion reg = (GuardedRegion)this.Region.GetRegion( typeof( GuardedRegion ) );

            if ( reg != null && !reg.CheckVendorAccess( this, from ) )
                return false;

            if ( this.Region != from.Region )
            {
                reg = (GuardedRegion)from.Region.GetRegion( typeof( GuardedRegion ) );

                if ( reg != null && !reg.CheckVendorAccess( this, from ) )
                    return false;
            }

            return true;
        }

Usage Example

Exemple #1
0
		public VendorSellEntry( Mobile from, BaseVendor vendor )
			: base( 6104, 8 )
		{
			m_Vendor = vendor;
			Enabled = vendor.CheckVendorAccess( from );
		}
All Usage Examples Of Server.Mobiles.BaseVendor::CheckVendorAccess