Server.Mobiles.PackAnimal.TryPackOpen C# (CSharp) Method

TryPackOpen() public static method

public static TryPackOpen ( BaseCreature animal, Mobile from ) : void
animal BaseCreature
from Mobile
return void
        public static void TryPackOpen( BaseCreature animal, Mobile from )
        {
            if ( animal.IsDeadPet )
                return;

            Container item = animal.Backpack;

            if ( item != null )
                from.Use( item );
        }

Usage Example

コード例 #1
0
 public override void OnDoubleClick(Mobile from)
 {
     PackAnimal.TryPackOpen(this, from);
 }
All Usage Examples Of Server.Mobiles.PackAnimal::TryPackOpen