Server.Gumps.TentDGump.OnResponse C# (CSharp) Méthode

OnResponse() public méthode

public OnResponse ( NetState state, RelayInfo info ) : void
state NetState
info RelayInfo
Résultat void
		public override void OnResponse( NetState state, RelayInfo info ) //Function for GumpButtonType.Reply Buttons 
		{ 

			Mobile from = state.Mobile; 

			switch ( info.ButtonID ) 
			{ 
			case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0 
				{ 
					//Cancel
					from.SendMessage( "Your choose not to RePack your Tent." ); 
					break; 
				} 

			case 1: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0 
				{ 
					
					//RePack 
					m_TentDestroyer.Delete();
					from.AddToBackpack( new TentDeed() ); 
					from.SendMessage( "You roll up your Tent and place it in your backpack." ); 
					break;
				} 
			}
		}}