예제 #1
0
파일: BaseHire.cs 프로젝트: twlizer/runuo
        public override void GetContextMenuEntries(Mobile from, List <ContextMenuEntry> list)
        {
            BaseAI m_AI = new MeleeAI(this);

            if (this.Deleted)
            {
                return;
            }

            if (CanPaperdollBeOpenedBy(from))
            {
                list.Add(new PaperdollEntry(this));
            }

            if (from == this && Backpack != null && CanSee(Backpack) && CheckAlive(false))
            {
                list.Add(new OpenBackpackEntry(this));
            }

            if (Controlled == false)
            {
                list.Add(new HireEntry(from, this));
            }

            if (Controlled == true)              // OSI has a custom MenuEntries for Hireling, with Dismiss instead of Release (see BaseAI changes)
            {
                m_AI.GetContextMenuEntries(from, list);
            }
        }
예제 #2
0
		public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
		{
			BaseAI m_AI = new MeleeAI(this);
		
			if ( this.Deleted )
				return;

			if ( CanPaperdollBeOpenedBy( from ) )
				list.Add( new PaperdollEntry( this ) );

			if ( from == this && Backpack != null && CanSee( Backpack ) && CheckAlive( false ) )
				list.Add( new OpenBackpackEntry( this ) );

			if( Controlled == false )
				list.Add( new HireEntry( from, this )  );

			if( Controlled == true ) // OSI has a custom MenuEntries for Hireling, with Dismiss instead of Release (see BaseAI changes)
				m_AI.GetContextMenuEntries( from, list );
		}