Server.Items.Aquarium.GetContextMenuEntries C# (CSharp) Méthode

GetContextMenuEntries() public méthode

public GetContextMenuEntries ( Server.Mobile from, List list ) : void
from Server.Mobile
list List
Résultat void
        public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
        {
            base.GetContextMenuEntries( from, list );

            if ( from.Alive )
            {
                list.Add( new ExamineEntry( this ) );

                if ( HasAccess( from ) )
                {
                    if ( m_RewardAvailable )
                        list.Add( new CollectRewardEntry( this ) );

                    if ( m_Events.Count > 0 )
                        list.Add( new ViewEventEntry( this ) );

                    if ( m_VacationLeft > 0 )
                        list.Add( new CancelVacationMode( this ) );
                }
            }

            if ( from.AccessLevel >= AccessLevel.GameMaster )
            {
                list.Add( new GMAddFood( this ) );
                list.Add( new GMAddWater( this ) );
                list.Add( new GMForceEvaluate( this ) );
                list.Add( new GMOpen( this ) );
                list.Add( new GMFill( this ) );
            }
        }