Server.Mobiles.TownCrierDurationPrompt.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 )
		{
			TimeSpan ts;

			if( !TimeSpan.TryParse( text, out ts ) )
			{
				from.SendMessage( "Value was not properly formatted. Use: <hours:minutes:seconds>" );
				from.SendGump( new TownCrierGump( from, m_Owner ) );
				return;
			}

			if ( ts < TimeSpan.Zero )
				ts = TimeSpan.Zero;

			from.SendMessage( "Duration set to: {0}", ts );
			from.SendMessage( "Enter the first line to shout:" );

			from.Prompt = new TownCrierLinesPrompt( m_Owner, null, new List<String>(), ts );
		}