コード例 #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
ファイル: BaseHire.cs プロジェクト: greeduomacro/last-wish
		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 );
		}