Server.Mobiles.PlayerVendor.CollectGoldPrompt.OnResponse C# (CSharp) Méthode

OnResponse() public méthode

public OnResponse ( Mobile from, string text ) : void
from Mobile
text string
Résultat void
			public override void OnResponse( Mobile from, string text )
			{
				if ( !m_Vendor.CanInteractWith( from, true ) )
					return;

				text = text.Trim();

				int amount;

				if ( !int.TryParse( text, out amount ) )
					amount = 0;

				GiveGold( from, amount );
			}