Server.Mobiles.PackAnimal.CheckAccess C# (CSharp) Méthode

CheckAccess() public static méthode

public static CheckAccess ( BaseCreature animal, Mobile from ) : bool
animal BaseCreature
from Mobile
Résultat bool
        public static bool CheckAccess( BaseCreature animal, Mobile from )
        {
            if ( from == animal || from.AccessLevel >= AccessLevel.GameMaster )
                return true;

            if ( from.Alive && animal.Controlled && !animal.IsDeadPet && ( from == animal.ControlMaster || from == animal.SummonMaster || animal.IsPetFriend( from ) ) )
                return true;

            return false;
        }

Usage Example

 public override bool CheckNonlocalLift(Mobile from, Item item)
 {
     return(PackAnimal.CheckAccess(this, from));
 }
All Usage Examples Of Server.Mobiles.PackAnimal::CheckAccess