Server.Multis.BaseHouse.IsFriend C# (CSharp) Méthode

IsFriend() public méthode

public IsFriend ( Mobile m ) : bool
m Mobile
Résultat bool
		public bool IsFriend( Mobile m )
		{
			if ( m == null || m_Friends == null )
				return false;

			return ( IsCoOwner( m ) || m_Friends.Contains( m ) );
		}

Usage Example

Exemple #1
0
        public void ShowSign(Mobile m)
        {
            if (m_Owner != null)
            {
                if (m_Owner.IsFriend(m) && m.AccessLevel < AccessLevel.GameMaster)
                {
                    m_Owner.RefreshDecay();
                    m.SendLocalizedMessage(501293);                       // Welcome back to the house, friend!
                }

                //if ( m_Owner.IsAosRules || m_Owner is HouseFoundation )
                m.SendGump(new HouseGumpAOS(HouseGumpPageAOS.Information, m, m_Owner));
                //else
                //	m.SendGump( new HouseGump( m, m_Owner ) );
            }
        }
All Usage Examples Of Server.Multis.BaseHouse::IsFriend