Server.Mobiles.BaseEscortable.AddCustomContextEntries C# (CSharp) Méthode

AddCustomContextEntries() public méthode

public AddCustomContextEntries ( Mobile from, List list ) : void
from Mobile
list List
Résultat void
		public override void AddCustomContextEntries( Mobile from, List<ContextMenuEntry> list )
		{
			if ( from.Alive )
			{
				Mobile escorter = GetEscorter();

				if ( GetDestination() != null )
				{
					if ( escorter == null || escorter == from )
						list.Add( new AskDestinationEntry( this, from ) );

					if ( escorter == null )
						list.Add( new AcceptEscortEntry( this, from ) );
				}

				if ( escorter == from )
					list.Add( new AbandonEscortEntry( this, from ) );
			}

			base.AddCustomContextEntries( from, list );
		}