示例#1
0
        public static bool CheckAccess( IHouse house, Mobile from )
        {
            if ( house.Public )
                return !house.IsBanned( from );

            return house.HasAccess( from );
        }
示例#2
0
        public static bool CheckAccess(IHouse house, Mobile from)
        {
            if (house.Public)
            {
                return(!house.IsBanned(from));
            }

            return(house.HasAccess(from));
        }
示例#3
0
        public bool CheckAccess(Mobile m)
        {
            if (!IsLockedDown || m.AccessLevel >= AccessLevel.GameMaster)
            {
                return(true);
            }

            IHouse house = HousingHelper.FindHouseAt(this);

            if (house != null && (house.Public ? house.IsBanned(m) : !house.HasAccess(m)))
            {
                return(false);
            }

            return(house != null && house.HasSecureAccess(m, m_Level));
        }
示例#4
0
        public bool CheckAccess(Mobile m)
        {
            IHouse house = FindHouse();

            if (house == null)
            {
                return(false);
            }

            if (house.Public ? house.IsBanned(m) : !house.HasAccess(m))
            {
                return(false);
            }

            return(house.HasSecureAccess(m, m_Level));
        }